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 
13 #include <boost/cstdint.hpp>
14 
15 class HcalGain {
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  HcalGain () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
25 
26  HcalGain (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
27  mId (fId),
28  mValue0 (fCap0),
29  mValue1 (fCap1),
30  mValue2 (fCap2),
31  mValue3 (fCap3) {}
32 
33  uint32_t rawId () const {return mId;}
34 
35  private:
36  uint32_t mId;
37  float mValue0;
38  float mValue1;
39  float mValue2;
40  float mValue3;
41 };
42 
43 #endif
float getValue(int fCapId) const
get value for capId = 0..3
Definition: HcalGain.h:20
float mValue0
Definition: HcalGain.h:37
float mValue3
Definition: HcalGain.h:40
uint32_t rawId() const
Definition: HcalGain.h:33
HcalGain()
Definition: HcalGain.h:24
float mValue1
Definition: HcalGain.h:38
const float * getValues() const
get value for all capId = 0..3
Definition: HcalGain.h:18
uint32_t mId
Definition: HcalGain.h:36
HcalGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: HcalGain.h:26
float mValue2
Definition: HcalGain.h:39