CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalGainWidth.h
Go to the documentation of this file.
1 #ifndef HcalGainWidth_h
2 #define HcalGainWidth_h
3 
13 #include <cstdint>
14 
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  HcalGainWidth() : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
25 
26  HcalGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
27  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
28 
29  uint32_t rawId() const { return mId; }
30 
31 private:
32  uint32_t mId;
33  float mValue0;
34  float mValue1;
35  float mValue2;
36  float mValue3;
37 
39 };
40 
41 #endif
HcalGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: HcalGainWidth.h:26
float getValue(int fCapId) const
get value for capId = 0..3
Definition: HcalGainWidth.h:20
const float * getValues() const
get value for all capId = 0..3
Definition: HcalGainWidth.h:18
uint32_t mId
Definition: HcalGainWidth.h:32
uint32_t rawId() const
Definition: HcalGainWidth.h:29
#define COND_SERIALIZABLE
Definition: Serializable.h:39