1 #ifndef HcalCastorDetId_h_included 2 #define HcalCastorDetId_h_included 1 62 int sector()
const {
return ((
id_ >> 4) & 0xF) + 1; }
85 #endif // HcalCastorDetId_h_included 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)
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)
static bool validDenseIndex(uint32_t din)
int sector() const
get the sector (1-16)
static const int SubdetectorId
HcalCastorDetId & operator=(const DetId &id)
Section section() const
get the section
std::ostream & operator<<(std::ostream &, const HcalCastorDetId &id)
static constexpr int kSizeForDenseIndexing
uint32_t denseIndex() const