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