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 
9 #include <boost/cstdint.hpp>
10 
12  public:
14  const float* getValues () const {return &mValue0;}
16  float getValue (int fCapId) const {return *(getValues () + fCapId);}
17 
18  // functions below are not supposed to be used by consumer applications
19 
20  CastorGainWidth () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
21 
22  CastorGainWidth (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
23  mId (fId),
24  mValue0 (fCap0),
25  mValue1 (fCap1),
26  mValue2 (fCap2),
27  mValue3 (fCap3) {}
28 
29  uint32_t rawId () const {return mId;}
30 
31  private:
32  uint32_t mId;
33  float mValue0;
34  float mValue1;
35  float mValue2;
36  float mValue3;
37 };
38 
39 #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
CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)