ATLAS Offline Software
Loading...
Searching...
No Matches
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

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}
#define M_PI

◆ 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}