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 { CalibrationBox = 1, HOCrosstalk = 2, uMNqie = 3, CastorRadFacility = 4, LASERMON = 5, HBX = 6, HEX = 7 };
49 
53  HcalCalibDetId(uint32_t rawid);
55  HcalCalibDetId(const DetId& id);
56  HcalCalibDetId& operator=(const DetId& id);
58  HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
60  HcalCalibDetId(CalibDetType dt, int ieta, int iphi);
62  HcalCalibDetId(int ieta, int iphi);
66  HcalCalibDetId(CalibDetType dt, int value1, int value2, int value3);
67 
69  CalibDetType calibFlavor() const { return (CalibDetType)((id_>>17)&0x7); }
75  int ieta() const;
77  int iphi() const;
79  int cboxChannel() const;
82 
84  int rm() const;
86  int fiber() const;
88  int channel() const;
89 
91  int zside() const;
92 
94  static const int cbox_MixerHigh = 0; // HB/HE/HO/HF
95  static const int cbox_MixerLow = 1; // HB/HE/HO/HF
96  static const int cbox_LaserMegatile = 2; // in HB only!
97  static const int cbox_RadDam_Layer0_RM4 = 3; // in HE only!
98  static const int cbox_RadDam_Layer7_RM4 = 4; // in HE only!
99  static const int cbox_RadDam_Layer0_RM1 = 5; // in HE only!
100  static const int cbox_RadDam_Layer7_RM1 = 6; // in HE only!
101  static const int cbox_HOCrosstalkPIN = 7; // in (part of) HO only!
102  static const int cbox_HF_ScintillatorPIN = 8; // in HF only!
103 };
104 
105 std::ostream& operator<<(std::ostream& s,const HcalCalibDetId& id);
106 
107 #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
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:62
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