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);
34 |(((ieta > 0)?(1):(0))<<11);
42 (
id_|=((
abs(ieta)&0xF) <<7)|(((ieta > 0)?(1):(0))<<11)):
43 (
id_|=((
abs(ieta)&0x1F)<<7)|(((ieta > 0)?(1):(0))<<12));
53 id_|=(value1&0x3F)<<10;
54 id_|=(value2&0x1F)<<5;
135 return s <<
"(HcalCalibBox " << sd <<
' ' <<
id.ieta() <<
"," <<
id.iphi()
136 <<
' ' <<
id.cboxChannelString() <<
')';
138 return s <<
"(HOCrosstalk " <<
id.ieta() <<
"," <<
id.iphi()
141 return s <<
"(uMNqie " <<
id.channel() <<
')';
143 return s <<
"(LASERMON" <<
id.channel() <<
')';
145 return s <<
"(CastorRadFacility " <<
id.rm() <<
" / " <<
id.fiber() <<
" / " <<
id.channel() <<
')';
147 return s <<
"(HBX " <<
id.ieta() <<
"," <<
id.iphi() <<
")";
149 return s <<
"(HEX " <<
id.ieta() <<
"," <<
id.iphi() <<
")";
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
constexpr bool null() const
is this a null id ?
constexpr uint32_t rawId() const
get the raw id
static const int cbox_RadDam_Layer7_RM1
static const int cbox_LaserMegatile
std::ostream & operator<<(std::ostream &s, const HcalCalibDetId &id)
std::string cboxChannelString() const
get the calibration box channel as a string (if relevant)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Abs< T >::type abs(const T &t)
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
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)
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
constexpr Detector det() const
get the detector field from this detid