test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorGainWidth.h
Go to the documentation of this file.
1 #ifndef CastorGainWidth_h
2 #define CastorGainWidth_h
3 
10 
11 #include <boost/cstdint.hpp>
12 
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  CastorGainWidth () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
23 
24  CastorGainWidth (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
25  mId (fId),
26  mValue0 (fCap0),
27  mValue1 (fCap1),
28  mValue2 (fCap2),
29  mValue3 (fCap3) {}
30 
31  uint32_t rawId () const {return mId;}
32 
33  private:
34  uint32_t mId;
35  float mValue0;
36  float mValue1;
37  float mValue2;
38  float mValue3;
39 
41 };
42 
43 #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:37
CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)