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 
10 #include <boost/cstdint.hpp>
11 
12 class CastorGain {
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  CastorGain () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
22 
23  CastorGain (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
24  mId (fId),
25  mValue0 (fCap0),
26  mValue1 (fCap1),
27  mValue2 (fCap2),
28  mValue3 (fCap3) {}
29 
30  uint32_t rawId () const {return mId;}
31 
32  private:
33  uint32_t mId;
34  float mValue0;
35  float mValue1;
36  float mValue2;
37  float mValue3;
38 };
39 
40 #endif
float mValue1
Definition: CastorGain.h:35
uint32_t rawId() const
Definition: CastorGain.h:30
float mValue0
Definition: CastorGain.h:34
uint32_t mId
Definition: CastorGain.h:33
CastorGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: CastorGain.h:23
float mValue3
Definition: CastorGain.h:37
float mValue2
Definition: CastorGain.h:36
float getValue(int fCapId) const
get value for capId = 0..3
Definition: CastorGain.h:17
const float * getValues() const
get value for all capId = 0..3
Definition: CastorGain.h:15