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 
46 public:
48  enum CalibDetType {
51  uMNqie = 3,
53  LASERMON = 5,
54  HBX = 6,
55  HEX = 7
56  };
57 
61  HcalCalibDetId(uint32_t rawid);
63  HcalCalibDetId(const DetId& id);
64  HcalCalibDetId& operator=(const DetId& id);
66  HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
70  HcalCalibDetId(int ieta, int iphi);
74  HcalCalibDetId(CalibDetType dt, int value1, int value2, int value3);
75 
77  CalibDetType calibFlavor() const { return (CalibDetType)((id_ >> 17) & 0x7); }
83  int ieta() const;
85  int iphi() const;
87  int cboxChannel() const;
90 
92  int rm() const;
94  int fiber() const;
96  int channel() const;
97 
99  int zside() const;
100 
102  static const int cbox_MixerHigh = 0; // HB/HE/HO/HF
103  static const int cbox_MixerLow = 1; // HB/HE/HO/HF
104  static const int cbox_LaserMegatile = 2; // in HB only!
105  static const int cbox_RadDam_Layer0_RM4 = 3; // in HE only!
106  static const int cbox_RadDam_Layer7_RM4 = 4; // in HE only!
107  static const int cbox_RadDam_Layer0_RM1 = 5; // in HE only!
108  static const int cbox_RadDam_Layer7_RM1 = 6; // in HE only!
109  static const int cbox_HOCrosstalkPIN = 7; // in (part of) HO only!
110  static const int cbox_HF_ScintillatorPIN = 8; // in HF only!
111 };
112 
113 std::ostream& operator<<(std::ostream& s, const HcalCalibDetId& id);
114 
115 #endif
HcalCalibDetId::cbox_HOCrosstalkPIN
static const int cbox_HOCrosstalkPIN
Definition: HcalCalibDetId.h:109
HcalCalibDetId::cbox_LaserMegatile
static const int cbox_LaserMegatile
Definition: HcalCalibDetId.h:104
HcalCalibDetId::cbox_RadDam_Layer7_RM4
static const int cbox_RadDam_Layer7_RM4
Definition: HcalCalibDetId.h:106
HcalCalibDetId
Definition: HcalCalibDetId.h:45
HcalCalibDetId::cbox_RadDam_Layer0_RM4
static const int cbox_RadDam_Layer0_RM4
Definition: HcalCalibDetId.h:105
HcalCalibDetId::ieta
int ieta() const
Definition: HcalCalibDetId.cc:94
HcalCalibDetId::uMNqie
Definition: HcalCalibDetId.h:51
HcalCalibDetId::HEX
Definition: HcalCalibDetId.h:55
dt
float dt
Definition: AMPTWrapper.h:136
DetId
Definition: DetId.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalCalibDetId::zside
int zside() const
get the sign of ieta (+/-1)
Definition: HcalCalibDetId.cc:112
HcalCalibDetId::HBX
Definition: HcalCalibDetId.h:54
HcalCalibDetId::operator=
HcalCalibDetId & operator=(const DetId &id)
Definition: HcalCalibDetId.cc:73
HcalCalibDetId::HcalCalibDetId
HcalCalibDetId()
Definition: HcalCalibDetId.cc:5
HcalCalibDetId::CalibDetType
CalibDetType
Definition: HcalCalibDetId.h:48
HcalCalibDetId::cbox_HF_ScintillatorPIN
static const int cbox_HF_ScintillatorPIN
Definition: HcalCalibDetId.h:110
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCalibDetId::CastorRadFacility
Definition: HcalCalibDetId.h:52
HcalCalibDetId::channel
int channel() const
get the channel (for uMNio/qie or similar)
Definition: HcalCalibDetId.cc:143
DetId::id_
uint32_t id_
Definition: DetId.h:69
HcalCalibDetId::cbox_RadDam_Layer7_RM1
static const int cbox_RadDam_Layer7_RM1
Definition: HcalCalibDetId.h:108
HLT_FULL_cff.value2
value2
Definition: HLT_FULL_cff.py:9868
value
Definition: value.py:1
HcalCalibDetId::iphi
int iphi() const
get the low-edge iphi (if relevant)
Definition: HcalCalibDetId.cc:104
HcalOtherDetId.h
HcalCalibDetId::hcalSubdet
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
Definition: HcalCalibDetId.cc:90
HcalSubdetector.h
HcalCalibDetId::LASERMON
Definition: HcalCalibDetId.h:53
HcalCalibDetId::calibFlavor
CalibDetType calibFlavor() const
get the flavor of this calibration detid
Definition: HcalCalibDetId.h:77
HcalCalibDetId::cbox_RadDam_Layer0_RM1
static const int cbox_RadDam_Layer0_RM1
Definition: HcalCalibDetId.h:107
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
HLT_FULL_cff.value1
value1
Definition: HLT_FULL_cff.py:9869
HcalCalibDetId::HOCrosstalk
Definition: HcalCalibDetId.h:50
HcalCalibDetId::cboxChannelString
std::string cboxChannelString() const
get the calibration box channel as a string (if relevant)
Definition: HcalCalibDetId.cc:118
HcalCalibDetId::cboxChannel
int cboxChannel() const
get the calibration box channel (if relevant)
Definition: HcalCalibDetId.cc:86
HcalOtherDetId
Definition: HcalOtherDetId.h:22
HcalCalibDetId::rm
int rm() const
get the rm (where relevant)
Definition: HcalCalibDetId.cc:147
HcalCalibDetId::cbox_MixerLow
static const int cbox_MixerLow
Definition: HcalCalibDetId.h:103
HcalOtherDetId::subdet
HcalOtherSubdetector subdet() const
get the category
Definition: HcalOtherDetId.h:30
HcalCalibDetId::cbox_MixerHigh
static const int cbox_MixerHigh
constants
Definition: HcalCalibDetId.h:102
HcalCalibDetId::CalibrationBox
Definition: HcalCalibDetId.h:49
HcalCalibDetId::fiber
int fiber() const
get the fiber (where relevant)
Definition: HcalCalibDetId.cc:145
operator<<
std::ostream & operator<<(std::ostream &s, const HcalCalibDetId &id)
Definition: HcalCalibDetId.cc:149