CMS 3D CMS Logo

CastorGainWidth.h
Go to the documentation of this file.
1 #ifndef CastorGainWidth_h
2 #define CastorGainWidth_h
3 
10 #include <cstdint>
11 
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  CastorGainWidth() : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
22 
23  CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
24  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
25 
26  uint32_t rawId() const { return mId; }
27 
28 private:
29  uint32_t mId;
30  float mValue0;
31  float mValue1;
32  float mValue2;
33  float mValue3;
34 
36 };
37 
38 #endif
CastorGainWidth::rawId
uint32_t rawId() const
Definition: CastorGainWidth.h:26
CastorGainWidth::mId
uint32_t mId
Definition: CastorGainWidth.h:29
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CastorGainWidth::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition: CastorGainWidth.h:17
CastorGainWidth
Definition: CastorGainWidth.h:12
CastorGainWidth::getValues
const float * getValues() const
get value for all capId = 0..3
Definition: CastorGainWidth.h:15
CastorGainWidth::mValue0
float mValue0
Definition: CastorGainWidth.h:30
CastorGainWidth::CastorGainWidth
CastorGainWidth()
Definition: CastorGainWidth.h:21
Serializable.h
CastorGainWidth::mValue1
float mValue1
Definition: CastorGainWidth.h:31
CastorGainWidth::CastorGainWidth
CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition: CastorGainWidth.h:23
CastorGainWidth::mValue3
float mValue3
Definition: CastorGainWidth.h:33
CastorGainWidth::mValue2
float mValue2
Definition: CastorGainWidth.h:32