CMS 3D CMS Logo

HcalGain.h
Go to the documentation of this file.
1 #ifndef HcalGain_h
2 #define HcalGain_h
3 
14 #include <cstdint>
15 
16 class HcalGain {
17 public:
19  const float* getValues() const { return &mValue0; }
21  float getValue(int fCapId) const { return *(getValues() + fCapId); }
22 
23  // functions below are not supposed to be used by consumer applications
24 
25  HcalGain() : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
26 
27  HcalGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
28  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
29 
30  uint32_t rawId() const { return mId; }
31 
32 private:
33  uint32_t mId;
34  float mValue0;
35  float mValue1;
36  float mValue2;
37  float mValue3;
38 
40 };
41 
42 #endif
float getValue(int fCapId) const
get value for capId = 0..3
Definition: HcalGain.h:21
float mValue0
Definition: HcalGain.h:34
float mValue3
Definition: HcalGain.h:37
uint32_t rawId() const
Definition: HcalGain.h:30
HcalGain()
Definition: HcalGain.h:25
float mValue1
Definition: HcalGain.h:35
const float * getValues() const
get value for all capId = 0..3
Definition: HcalGain.h:19
#define COND_SERIALIZABLE
Definition: Serializable.h:38
uint32_t mId
Definition: HcalGain.h:33
HcalGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: HcalGain.h:27
float mValue2
Definition: HcalGain.h:36