1 #ifndef HcalCastorDetId_h_included 2 #define HcalCastorDetId_h_included 1 40 bool true_for_positive_eta,
57 int zside()
const {
return 2*( (
id_ >> 8 ) & 0x1 ) - 1 ; }
69 int sector()
const {
return ((
id_ >> 4) & 0xF) + 1 ; }
94 bool true_for_positive_eta,
102 #endif // HcalCastorDetId_h_included static bool validDetId(Section iSection, bool posEta, int iSector, int iMod)
int sector() const
get the sector (1-16)
void buildMe(Section section, bool true_for_positive_eta, int sector, int module)
int module() const
get the module (1-2 for EM, 1-12 for HAD)
uint32_t denseIndex() const
Section section() const
get the section
static HcalCastorDetId detIdFromDenseIndex(uint32_t di)
int zside() const
get the z-side of the cell (1/-1)
static bool validDenseIndex(uint32_t din)
static const int SubdetectorId
HcalCastorDetId & operator=(const DetId &id)
std::ostream & operator<<(std::ostream &, const HcalCastorDetId &id)