test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorPedestal.h
Go to the documentation of this file.
1 #ifndef CastorPedestal_h
2 #define CastorPedestal_h
3 
14 
15 #include <boost/cstdint.hpp>
16 
18  public:
20  const float* getValues () const {return &mValue0;}
22  float getValue (int fCapId) const {return *(getValues () + fCapId);}
23 
25  const float* getWidths () const {return &mWidth0;}
27  float getWidth (int fCapId) const {return *(getWidths () + fCapId);}
28 
29  // functions below are not supposed to be used by consumer applications
30 
31  CastorPedestal () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0),
32  mWidth0 (0), mWidth1 (0), mWidth2 (0), mWidth3 (0) {}
33 
34  CastorPedestal (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3,
35  float wCap0 = 0, float wCap1 = 0, float wCap2 = 0, float wCap3 = 0) :
36  mId (fId), mValue0 (fCap0), mValue1 (fCap1), mValue2 (fCap2), mValue3 (fCap3),
37  mWidth0 (wCap0), mWidth1 (wCap1), mWidth2 (wCap2), mWidth3 (wCap3) {}
38 
39  uint32_t rawId () const {return mId;}
40  private:
41  uint32_t mId;
42  float mValue0;
43  float mValue1;
44  float mValue2;
45  float mValue3;
46  float mWidth0;
47  float mWidth1;
48  float mWidth2;
49  float mWidth3;
50 
52 };
53 
54 #endif
uint32_t rawId() const
float getValue(int fCapId) const
get value for capId = 0..3
float getWidth(int fCapId) const
get width for capId = 0..3
CastorPedestal(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3, float wCap0=0, float wCap1=0, float wCap2=0, float wCap3=0)
const float * getWidths() const
get width for all capId = 0..3
#define COND_SERIALIZABLE
Definition: Serializable.h:30
const float * getValues() const
get value for all capId = 0..3