CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalCalibDetId.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALDETID_HCALCALIBDETID_H
2 #define DATAFORMATS_HCALDETID_HCALCALIBDETID_H 1
3 
4 #include <ostream>
7 
8 
30 public:
33 
37  HcalCalibDetId(uint32_t rawid);
39  HcalCalibDetId(const DetId& id);
40  HcalCalibDetId& operator=(const DetId& id);
42  HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
44  HcalCalibDetId(int ieta, int iphi);
45 
47  CalibDetType calibFlavor() const { return (CalibDetType)((id_>>17)&0x7); }
48 
49 
53 // std::string rbx() const;
55  int ieta() const;
57  int iphi() const;
59  int cboxChannel() const;
61  std::string cboxChannelString() const;
62 
64  int zside() const;
65 
67  static const int cbox_MixerHigh = 0; // HB/HE/HO/HF
68  static const int cbox_MixerLow = 1; // HB/HE/HO/HF
69  static const int cbox_LaserMegatile = 2; // in HB only!
70  static const int cbox_RadDam_Layer0_RM4 = 3; // in HE only!
71  static const int cbox_RadDam_Layer7_RM4 = 4; // in HE only!
72  static const int cbox_RadDam_Layer0_RM1 = 5; // in HE only!
73  static const int cbox_RadDam_Layer7_RM1 = 6; // in HE only!
74  static const int cbox_HOCrosstalkPIN = 7; // in (part of) HO only!
75  static const int cbox_HF_ScintillatorPIN = 8; // in HF only!
76 };
77 
78 std::ostream& operator<<(std::ostream& s,const HcalCalibDetId& id);
79 
80 #endif
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)
Definition: ALILine.cc:187
int ieta() const
get the rbx name (if relevant)
static const int cbox_RadDam_Layer7_RM1
static const int cbox_LaserMegatile
std::string cboxChannelString() const
get the calibration box channel as a string (if relevant)
HcalSubdetector
Definition: HcalAssistant.h:32
HcalCalibDetId & operator=(const DetId &id)
int iphi() const
get the low-edge iphi (if relevant)
Definition: DetId.h:20
int zside() const
get the sign of ieta (+/-1)
HcalOtherSubdetector subdet() const
get the category
uint32_t id_
Definition: DetId.h:57
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
static const int cbox_MixerHigh
constants