1 #ifndef HcalZDCDetId_h_included
2 #define HcalZDCDetId_h_included 1
34 int zside()
const {
return (
id_&0x40)?(1):(-1); }
38 int depth()
const {
return (((
id_>>4)&0x3)==1)?(1):((((
id_>>4)&0x3)==2)?((
id_&0xF)+1):(
id_&0xF)); }
66 #endif // HcalZDCDetId_h_included
static bool validDetId(Section se, int dp)
static bool validDenseIndex(uint32_t di)
int zside() const
get the z-side of the cell (1/-1)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Section section() const
get the section
static HcalZDCDetId detIdFromDenseIndex(uint32_t di)
static const int SubdetectorId
int depth() const
get the depth (1 for EM, channel + 1 for HAD, not sure yet for LUM, leave as default) ...
int channel() const
get the channel
HcalZDCDetId & operator=(const DetId &id)
uint32_t denseIndex() const