27 <<
"Cannot initialize CASTORDetId from " << std::hex <<
gen.rawId() <<
std::dec;
56 if (
mod > 2 &&
mod <= 14) {
79 s <<
"(CASTOR" << ((
id.zside() == 1) ? (
"+") : (
"-"));
92 return s <<
id.sector() <<
',' <<
id.module() <<
',' <<
')';
static bool validDetId(Section iSection, bool posEta, int iSector, int iMod)
static constexpr int kNumberModulesPerEnd
static constexpr int kNumberCellsPerEnd
void buildMe(Section section, bool true_for_positive_eta, int sector, int module)
std::ostream & operator<<(std::ostream &s, const HcalCastorDetId &id)
static HcalCastorDetId detIdFromDenseIndex(uint32_t di)
static constexpr int kNumberSectorsPerEnd
int module() const
get the module (1-2 for EM, 1-12 for HAD)
int zside() const
get the z-side of the cell (1/-1)
int sector() const
get the sector (1-16)
static const int SubdetectorId
HcalCastorDetId & operator=(const DetId &id)
Section section() const
get the section
T mod(const T &a, const T &b)
uint32_t denseIndex() const