ATLAS Offline Software
Classes | Functions
RegSelEtaPhiModule.h File Reference
#include <iostream>
#include <cmath>
Include dependency graph for RegSelEtaPhiModule.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EtaPhiBase
 base class, with just the eta-phi limits and the overlap functionality
More...
 
class  TRegSelEtaPhiModule< T >
 template class with payload added NB: >, <, == and != operators should be defined for the payload for the sorting when adding to an std::set could get away only with < operator, but there you go
More...
 

Functions

std::ostream & operator<< (std::ostream &s, const EtaPhiBase &e)
 
template<class T >
std::ostream & operator<< (std::ostream &s, const TRegSelEtaPhiModule< T > &e)
 the payload class needs to have an << streamer defined or we cannot stream it More...
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  s,
const EtaPhiBase e 
)
inline

Definition at line 109 of file RegSelEtaPhiModule.h.

109  {
110  s << "[ eta=" << e.etamin() << " - " << e.etamax();
111  s << "\tphi=" << 180*e.phimin()/M_PI << " - " << 180*e.phimax()/M_PI;
112  s<< " ]";
113  return s;
114 }

◆ operator<<() [2/2]

template<class T >
std::ostream& operator<< ( std::ostream &  s,
const TRegSelEtaPhiModule< T > &  e 
)
inline

the payload class needs to have an << streamer defined or we cannot stream it

Definition at line 155 of file RegSelEtaPhiModule.h.

155  {
156  s << "[ eta= " << e.etamin() << " - " << e.etamax();
157  s << "\tphi= " << 180*e.phimin()/M_PI << " - " << 180*e.phimax()/M_PI;
158  s << "\tpay= " << e.payload();
159  s << " ]";
160  return s;
161 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
M_PI
#define M_PI
Definition: ActiveFraction.h:11