18 id_|=(((ieta+2)&0x7)<<11);
19 id_|=((subdet&0x7)<<14);
20 if (subdet==4)
id_|=((((((((iphi-1)&0x7E)+1)/18)*18)+1)&0x7F)<<4);
23 else if (subdet==1||subdet==2)
id_|=(((((((iphi+1)>>2)&0x1F)<<2)+71)%72)<<4);
24 else if (subdet==3&&ieta==0)
id_|=( ((((((iphi+1)/6)*6)+71)%72)&0x7F) <<4);
25 else if (subdet==3&&ieta!=0)
id_|=( ((((((iphi+1)/12)*12)+71)%72)&0x7F) <<4);
26 else id_|=((iphi&0x7F)<<4);
33 |(((ieta > 0)?(1):(0))<<11);
43 id_|=(value1&0x3F)<<10;
44 id_|=(value2&0x1F)<<5;
113 switch (
id.hcalSubdet()) {
120 switch (
id.calibFlavor()) {
122 return s <<
"(HcalCalibBox " << sd <<
' ' <<
id.ieta() <<
"," <<
id.iphi()
123 <<
' ' <<
id.cboxChannelString() <<
')';
125 return s <<
"(HOCrosstalk " <<
id.ieta() <<
"," <<
id.iphi()
128 return s <<
"(uMNqie " <<
id.channel() <<
')';
130 return s <<
"(CastorRadFacility " <<
id.rm() <<
" / " <<
id.fiber() <<
" / " <<
id.channel() <<
')';
int rm() const
get the rm (where relevant)
int fiber() const
get the fiber (where relevant)
CalibDetType calibFlavor() const
get the flavor of this calibration detid
static const int cbox_RadDam_Layer7_RM4
static const int cbox_HF_ScintillatorPIN
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int ieta() const
get the rbx name (if relevant)
static const int cbox_RadDam_Layer7_RM1
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
uint32_t rawId() const
get the raw id
static const int cbox_LaserMegatile
std::string cboxChannelString() const
get the calibration box channel as a string (if relevant)
Abs< T >::type abs(const T &t)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
HcalCalibDetId & operator=(const DetId &id)
int iphi() const
get the low-edge iphi (if relevant)
int zside() const
get the sign of ieta (+/-1)
HcalOtherSubdetector subdet() const
get the category
bool null() const
is this a null id ?
int cboxChannel() const
get the calibration box channel (if relevant)
static const int cbox_RadDam_Layer0_RM1
static const int cbox_HOCrosstalkPIN
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
Detector det() const
get the detector field from this detid
static const int cbox_MixerLow
static const int cbox_RadDam_Layer0_RM4
int channel() const
get the channel (for uMNio/qie or similar)
static const int cbox_MixerHigh
constants