CMS 3D CMS Logo

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