test
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 
28 public:
31 
35  HcalCalibDetId(uint32_t rawid);
37  HcalCalibDetId(const DetId& id);
38  HcalCalibDetId& operator=(const DetId& id);
40  HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
42  HcalCalibDetId(int ieta, int iphi);
43 
45  CalibDetType calibFlavor() const { return (CalibDetType)((id_>>17)&0x7); }
46 
47 
51 // std::string rbx() const;
53  int ieta() const;
55  int iphi() const;
57  int cboxChannel() const;
60 
62  int zside() const;
63 
65  static const int cbox_MixerHigh = 0; // HB/HE/HO/HF
66  static const int cbox_MixerLow = 1; // HB/HE/HO/HF
67  static const int cbox_LaserMegatile = 2; // in HB only!
68  static const int cbox_RadDam_Layer0_RM4 = 3; // in HE only!
69  static const int cbox_RadDam_Layer7_RM4 = 4; // in HE only!
70  static const int cbox_RadDam_Layer0_RM1 = 5; // in HE only!
71  static const int cbox_RadDam_Layer7_RM1 = 6; // in HE only!
72  static const int cbox_HOCrosstalkPIN = 7; // in (part of) HO only!
73  static const int cbox_HF_ScintillatorPIN = 8; // in HF only!
74 };
75 
76 std::ostream& operator<<(std::ostream& s,const HcalCalibDetId& id);
77 
78 #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:31
HcalCalibDetId & operator=(const DetId &id)
int iphi() const
get the low-edge iphi (if relevant)
Definition: DetId.h:18
int zside() const
get the sign of ieta (+/-1)
HcalOtherSubdetector subdet() const
get the category
uint32_t id_
Definition: DetId.h:55
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