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 
13 
14 #include <boost/cstdint.hpp>
15 
17  public:
19  const float* getValues () const {return &mValue0;}
21  float getValue (int fCapId) const {return *(getValues () + fCapId);}
22 
23  // functions below are not supposed to be used by consumer applications
24 
25  HcalGainWidth () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
26 
27  HcalGainWidth (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
28  mId (fId),
29  mValue0 (fCap0),
30  mValue1 (fCap1),
31  mValue2 (fCap2),
32  mValue3 (fCap3) {}
33 
34  uint32_t rawId () const {return mId;}
35 
36  private:
37  uint32_t mId;
38  float mValue0;
39  float mValue1;
40  float mValue2;
41  float mValue3;
42 
44 };
45 
46 #endif
HcalGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: HcalGainWidth.h:27
float getValue(int fCapId) const
get value for capId = 0..3
Definition: HcalGainWidth.h:21
const float * getValues() const
get value for all capId = 0..3
Definition: HcalGainWidth.h:19
uint32_t mId
Definition: HcalGainWidth.h:37
uint32_t rawId() const
Definition: HcalGainWidth.h:34
#define COND_SERIALIZABLE
Definition: Serializable.h:30