11 id_ |= (true_for_positive_eta << 8) | (sector << 4) |
module;
16 buildMe(section, true_for_positive_eta, sector, module);
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)
int sector() const
get the sector (1-16)
constexpr bool null() const
is this a null id ?
void buildMe(Section section, bool true_for_positive_eta, int sector, int module)
constexpr uint32_t rawId() const
get the raw id
int module() const
get the module (1-2 for EM, 1-12 for HAD)
uint32_t denseIndex() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Section section() const
get the section
static HcalCastorDetId detIdFromDenseIndex(uint32_t di)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int zside() const
get the z-side of the cell (1/-1)
static const int SubdetectorId
HcalCastorDetId & operator=(const DetId &id)
T mod(const T &a, const T &b)
constexpr Detector det() const
get the detector field from this detid