File indexing completed on 2024-04-06 12:04:17
0001 #ifndef DATAFORMATS_HCALDETID_HCALCALIBDETID_H
0002 #define DATAFORMATS_HCALDETID_HCALCALIBDETID_H 1
0003
0004 #include <ostream>
0005 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0006 #include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 class HcalCalibDetId : public HcalOtherDetId {
0046 public:
0047
0048 enum CalibDetType {
0049 CalibrationBox = 1,
0050 HOCrosstalk = 2,
0051 uMNqie = 3,
0052 CastorRadFacility = 4,
0053 LASERMON = 5,
0054 HBX = 6,
0055 HEX = 7
0056 };
0057
0058
0059 HcalCalibDetId();
0060
0061 HcalCalibDetId(uint32_t rawid);
0062
0063 HcalCalibDetId(const DetId& id);
0064 HcalCalibDetId& operator=(const DetId& id);
0065
0066 HcalCalibDetId(HcalSubdetector subdet, int ieta, int iphi, int ctype);
0067
0068 HcalCalibDetId(CalibDetType dt, int ieta, int iphi);
0069
0070 HcalCalibDetId(int ieta, int iphi);
0071
0072 HcalCalibDetId(CalibDetType dt, int value);
0073
0074 HcalCalibDetId(CalibDetType dt, int value1, int value2, int value3);
0075
0076
0077 CalibDetType calibFlavor() const { return (CalibDetType)((id_ >> 17) & 0x7); }
0078
0079 HcalSubdetector hcalSubdet() const;
0080
0081
0082
0083 int ieta() const;
0084
0085 int iphi() const;
0086
0087 int cboxChannel() const;
0088
0089 std::string cboxChannelString() const;
0090
0091
0092 int rm() const;
0093
0094 int fiber() const;
0095
0096 int channel() const;
0097
0098
0099 int zside() const;
0100
0101
0102 static const int cbox_MixerHigh = 0;
0103 static const int cbox_MixerLow = 1;
0104 static const int cbox_LaserMegatile = 2;
0105 static const int cbox_RadDam_Layer0_RM4 = 3;
0106 static const int cbox_RadDam_Layer7_RM4 = 4;
0107 static const int cbox_RadDam_Layer0_RM1 = 5;
0108 static const int cbox_RadDam_Layer7_RM1 = 6;
0109 static const int cbox_HOCrosstalkPIN = 7;
0110 static const int cbox_HF_ScintillatorPIN = 8;
0111 };
0112
0113 std::ostream& operator<<(std::ostream& s, const HcalCalibDetId& id);
0114
0115 #endif