CMS 3D CMS Logo

CastorPedestal.h
Go to the documentation of this file.
1 #ifndef CastorPedestal_h
2 #define CastorPedestal_h
3 
14 #include <cstdint>
15 
17 public:
19  const float* getValues() const { return &mValue0; }
21  float getValue(int fCapId) const { return *(getValues() + fCapId); }
22 
24  const float* getWidths() const { return &mWidth0; }
26  float getWidth(int fCapId) const { return *(getWidths() + fCapId); }
27 
28  // functions below are not supposed to be used by consumer applications
29 
31  : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0), mWidth0(0), mWidth1(0), mWidth2(0), mWidth3(0) {}
32 
33  CastorPedestal(unsigned long fId,
34  float fCap0,
35  float fCap1,
36  float fCap2,
37  float fCap3,
38  float wCap0 = 0,
39  float wCap1 = 0,
40  float wCap2 = 0,
41  float wCap3 = 0)
42  : mId(fId),
43  mValue0(fCap0),
44  mValue1(fCap1),
45  mValue2(fCap2),
46  mValue3(fCap3),
47  mWidth0(wCap0),
48  mWidth1(wCap1),
49  mWidth2(wCap2),
50  mWidth3(wCap3) {}
51 
52  uint32_t rawId() const { return mId; }
53 
54 private:
55  uint32_t mId;
56  float mValue0;
57  float mValue1;
58  float mValue2;
59  float mValue3;
60  float mWidth0;
61  float mWidth1;
62  float mWidth2;
63  float mWidth3;
64 
66 };
67 
68 #endif
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
uint32_t rawId() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
float getValue(int fCapId) const
get value for capId = 0..3
const float * getValues() const
get value for all capId = 0..3
float getWidth(int fCapId) const
get width for capId = 0..3