11 #include "CLHEP/Units/defs.h" 12 #include "CLHEP/Units/PhysicalConstants.h" 13 #include "CLHEP/Units/SystemOfUnits.h" 37 double myPhi = thisPhi;
40 if ( myPhi < -1.*
CLHEP::pi ) { myPhi = myPhi+CLHEP::twopi; }
41 else if ( myPhi >
CLHEP::pi ) { myPhi = myPhi-CLHEP::twopi; }
42 if ( thisEta >=
etaMin && thisEta < etaMax && myPhi >=
phiMin && myPhi <
phiMax ) { itIs =
true; }
57 <<
std::fixed << std::setw(7) << std::setfill(
' ') << std::setprecision(4) <<
id.getEtaMin() <<
"," 58 <<
std::fixed << std::setw(7) << std::setfill(
' ') << std::setprecision(4) <<
id.getEtaMax() <<
"], Phi range = [" 59 <<
std::fixed << std::setw(7) << std::setfill(
' ') << std::setprecision(4) <<
id.getPhiMin() <<
"," 60 <<
std::fixed << std::setw(7) << std::setfill(
' ') << std::setprecision(4) <<
id.getPhiMax() <<
"], subsystem = " <<
id.getSubSys();
std::ostream & operator<<(std::ostream &os, const CaloCellId &id)
bool operator==(const CaloCellId &) const
Geom::Theta< T > theta() const
CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys)
bool isInCell(double thisEta, double thisPhi)