CMS 3D CMS Logo

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