test
CMS 3D CMS Logo

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