CMS 3D CMS Logo

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