CMS 3D CMS Logo

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