CMS 3D CMS Logo

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 
36 public:
39 
43  HcalCalibDetId(uint32_t rawid);
45  HcalCalibDetId(const DetId& id);
46  HcalCalibDetId& operator=(const DetId& id);
48  HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
50  HcalCalibDetId(int ieta, int iphi);
54  HcalCalibDetId(CalibDetType dt, int value1, int value2, int value3);
55 
57  CalibDetType calibFlavor() const { return (CalibDetType)((id_>>17)&0x7); }
58 
59 
63 // std::string rbx() const;
65  int ieta() const;
67  int iphi() const;
69  int cboxChannel() const;
72 
74  int rm() const;
76  int fiber() const;
78  int channel() const;
79 
81  int zside() const;
82 
84  static const int cbox_MixerHigh = 0; // HB/HE/HO/HF
85  static const int cbox_MixerLow = 1; // HB/HE/HO/HF
86  static const int cbox_LaserMegatile = 2; // in HB only!
87  static const int cbox_RadDam_Layer0_RM4 = 3; // in HE only!
88  static const int cbox_RadDam_Layer7_RM4 = 4; // in HE only!
89  static const int cbox_RadDam_Layer0_RM1 = 5; // in HE only!
90  static const int cbox_RadDam_Layer7_RM1 = 6; // in HE only!
91  static const int cbox_HOCrosstalkPIN = 7; // in (part of) HO only!
92  static const int cbox_HF_ScintillatorPIN = 8; // in HF only!
93 };
94 
95 std::ostream& operator<<(std::ostream& s,const HcalCalibDetId& id);
96 
97 #endif
float dt
Definition: AMPTWrapper.h:126
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
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
std::ostream & operator<<(std::ostream &s, const HcalCalibDetId &id)
Definition: value.py:1
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
int channel() const
get the channel (for uMNio/qie or similar)
static const int cbox_MixerHigh
constants