11 #include "CLHEP/Units/defs.h"
12 #include "CLHEP/Units/PhysicalConstants.h"
13 #include "CLHEP/Units/SystemOfUnits.h"
20 etaMin(theEtaMin),etaMax(theEtaMax),phiMin(thePhiMin),phiMax(thePhiMax),subSys(theSubSys)
24 etaMin(id.etaMin),etaMax(id.etaMax),phiMin(id.phiMin),phiMax(id.phiMax),subSys(id.subSys)
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();
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)
volatile std::atomic< bool > shutdown_flag false