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);
38 throw cms::Exception(
"Invalid DetId") <<
"Cannot initialize HcalCalibDetId from " << std::hex << gen.
rawId() << std::dec;
42 throw cms::Exception(
"Invalid DetId") <<
"Cannot initialize HcalCalibDetId from " << std::hex << gen.
rawId() << std::dec;
48 throw cms::Exception(
"Invalid DetId") <<
"Cannot assign HcalCalibDetId from " << std::hex << gen.
rawId() << std::dec;
52 throw cms::Exception(
"Invalid DetId") <<
"Cannot assign HcalCalibDetId from " << std::hex << gen.
rawId() << std::dec;
94 switch (
id.hcalSubdet()) {
101 switch (
id.calibFlavor()) {
103 return s <<
"(HcalCalibBox " << sd <<
' ' <<
id.ieta() <<
"," <<
id.iphi()
104 <<
' ' <<
id.cboxChannelString() <<
')';
106 return s <<
"(HOCrosstalk " <<
id.ieta() <<
"," <<
id.iphi()
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
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
static const int cbox_MixerHigh
constants