CMS 3D CMS Logo

CastorGainWidth.h
Go to the documentation of this file.
1 #ifndef CastorGainWidth_h
2 #define CastorGainWidth_h
3 
10 #include <cstdint>
11 
13 public:
15  const float* getValues() const { return &mValue0; }
17  float getValue(int fCapId) const { return *(getValues() + fCapId); }
18 
19  // functions below are not supposed to be used by consumer applications
20 
21  CastorGainWidth() : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
22 
23  CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
24  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
25 
26  uint32_t rawId() const { return mId; }
27 
28 private:
29  uint32_t mId;
30  float mValue0;
31  float mValue1;
32  float mValue2;
33  float mValue3;
34 
36 };
37 
38 #endif
float getValue(int fCapId) const
get value for capId = 0..3
uint32_t rawId() const
const float * getValues() const
get value for all capId = 0..3
#define COND_SERIALIZABLE
Definition: Serializable.h:38
CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)