CMS 3D CMS Logo

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