CMS 3D CMS Logo

HcalLutMetadatum.h
Go to the documentation of this file.
1 #ifndef HcalLutMetadatum_h
2 #define HcalLutMetadatum_h
3 
5 
6 /*
7 \class HcalLutMetadatum
8 \author Gena Kukartsev
9 contains RecHit calibration, LUT granularity, output LUT threshold for one HCAL channel
10 */
11 
13 public:
14  HcalLutMetadatum() : mId(0), mRCalib(1.0) {}
15  HcalLutMetadatum(unsigned long fid, float rCalib, uint8_t lutGranularity, uint8_t outputLutThreshold)
16  : mId(fid), mRCalib(rCalib), mLutGranularity(lutGranularity), mOutputLutThreshold(outputLutThreshold) {}
17 
18  uint32_t rawId() const { return mId; }
19 
20  float getRCalib() const { return mRCalib; }
21  uint8_t getLutGranularity() const { return mLutGranularity; }
22  uint8_t getOutputLutThreshold() const { return mOutputLutThreshold; }
23 
24 private:
25  uint32_t mId;
26  float mRCalib;
27  uint8_t mLutGranularity;
29 
31 };
32 
33 #endif
HcalLutMetadatum
Definition: HcalLutMetadatum.h:12
HcalLutMetadatum::mId
uint32_t mId
Definition: HcalLutMetadatum.h:25
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
HcalLutMetadatum::HcalLutMetadatum
HcalLutMetadatum(unsigned long fid, float rCalib, uint8_t lutGranularity, uint8_t outputLutThreshold)
Definition: HcalLutMetadatum.h:15
HcalLutMetadatum::HcalLutMetadatum
HcalLutMetadatum()
Definition: HcalLutMetadatum.h:14
HcalLutMetadatum::mLutGranularity
uint8_t mLutGranularity
Definition: HcalLutMetadatum.h:27
HcalLutMetadatum::getOutputLutThreshold
uint8_t getOutputLutThreshold() const
Definition: HcalLutMetadatum.h:22
HcalLutMetadatum::mOutputLutThreshold
uint8_t mOutputLutThreshold
Definition: HcalLutMetadatum.h:28
Serializable.h
HcalLutMetadatum::getRCalib
float getRCalib() const
Definition: HcalLutMetadatum.h:20
HcalLutMetadatum::rawId
uint32_t rawId() const
Definition: HcalLutMetadatum.h:18
HcalLutMetadatum::getLutGranularity
uint8_t getLutGranularity() const
Definition: HcalLutMetadatum.h:21
HcalLutMetadatum::mRCalib
float mRCalib
Definition: HcalLutMetadatum.h:26