#include <CalSectionReject.h>
Public Member Functions | |
CalSectionReject (double etaMin, double etaMax, double phiMin, double phiMax) | |
CalSectionReject (const CalSectionReject &other) | |
bool | operator() (const ITransportedParticle *p) |
bool | operator() (const EPileupDeposit *p) |
bool | operator() (const GridletElement *p) |
bool | operator() (const Gridlet *p) |
MsgStream & | writeout (MsgStream &stream) const |
Private Attributes | |
double | m_etaMin |
double | m_etaMax |
double | m_phiMin |
double | m_phiMax |
Definition at line 44 of file CalSectionReject.h.
Atlfast::CalSectionReject::CalSectionReject | ( | double | etaMin, | |
double | etaMax, | |||
double | phiMin, | |||
double | phiMax | |||
) |
Atlfast::CalSectionReject::CalSectionReject | ( | const CalSectionReject & | other | ) |
bool Atlfast::CalSectionReject::operator() | ( | const ITransportedParticle * | p | ) |
Tests whether ITransportedParticle is within eta, phi bounds.
Definition at line 48 of file CalSectionReject.cxx.
00048 { 00049 double eta = p->eta(); 00050 //double eta = ((p->particle())->momentum()).pseudoRapidity(); 00051 ::Phi phi = p->phi(); 00052 if(eta<=m_etaMin || eta > m_etaMax) { 00053 return true; 00054 } 00055 if(phi<=m_phiMin || phi > m_phiMax){ 00056 return true; 00057 } 00058 return false; 00059 }
bool Atlfast::CalSectionReject::operator() | ( | const EPileupDeposit * | p | ) |
Tests whether EPileupDeposit is within eta, phi bounds.
Definition at line 61 of file CalSectionReject.cxx.
00061 { 00062 double eta = p->eta(); 00063 ::Phi phi = p->phi(); 00064 if(eta<=m_etaMin || eta > m_etaMax) return true; 00065 if(phi<=m_phiMin || phi > m_phiMax) return true; 00066 return false; 00067 }
bool Atlfast::CalSectionReject::operator() | ( | const GridletElement * | p | ) |
Tests whether GridletElement is within eta, phi bounds.
Definition at line 69 of file CalSectionReject.cxx.
00069 { 00070 double eta = p->eta(); 00071 ::Phi phi = p->phi(); 00072 if(eta<=m_etaMin || eta > m_etaMax) {return true;} 00073 if(phi<=m_phiMin || phi > m_phiMax) {return true;} 00074 return false; 00075 }
bool Atlfast::CalSectionReject::operator() | ( | const Gridlet * | p | ) |
Tests whether Gridlet is within eta, phi bounds.
Definition at line 77 of file CalSectionReject.cxx.
00077 { 00078 double eta = g->eta0(); 00079 ::Phi phi = g->phi0(); 00080 if(eta<=m_etaMin || eta > m_etaMax) return true; 00081 if(phi<=m_phiMin || phi > m_phiMax) return true; 00082 return false; 00083 }
MsgStream & Atlfast::CalSectionReject::writeout | ( | MsgStream & | stream | ) | const |
Writes out information to MsgStream (not implemented).
Definition at line 85 of file CalSectionReject.cxx.
00085 { 00086 stream<<setiosflags(ios::fixed); 00087 stream<<setprecision(3); 00088 stream<<"Lower limits (phi, eta):"<<endreq; 00089 stream<< m_phiMin <<" "<<m_etaMin<<endreq; 00090 stream<<"Upper limit (phi, eta):"<<endreq; 00091 stream<< m_phiMax <<" "<<m_etaMax<<endreq; 00092 return stream; 00093 }
double Atlfast::CalSectionReject::m_etaMin [private] |
Definition at line 66 of file CalSectionReject.h.
double Atlfast::CalSectionReject::m_etaMax [private] |
Definition at line 67 of file CalSectionReject.h.
double Atlfast::CalSectionReject::m_phiMin [private] |
Definition at line 68 of file CalSectionReject.h.
double Atlfast::CalSectionReject::m_phiMax [private] |
Definition at line 69 of file CalSectionReject.h.