CMS 3D CMS Logo

CastorCalibrationQIECoder.h
Go to the documentation of this file.
1 #ifndef CastorCalibrationQIECoder_h
2 #define CastorCalibrationQIECoder_h
3 
12 
13 #include <vector>
14 #include <algorithm>
15 #include <cstdint>
16 
18 public:
19  CastorCalibrationQIECoder(unsigned long fId = 0) : mId(fId) {}
21  float charge(const unsigned fAdc) const;
23  unsigned adc(const float fCharge) const;
24 
25  // following methods are not for use by consumers
26  float minCharge(unsigned fBin) const;
27  // 32 values
28  const float* minCharges() const;
29  void setMinCharge(unsigned fBin, float fValue);
30  void setMinCharges(const float fValue[32]);
31  uint32_t rawId() const { return mId; }
32 
33 private:
34  uint32_t mId;
35  float bin0;
36  float bin1;
37  float bin2;
38  float bin3;
39  float bin4;
40  float bin5;
41  float bin6;
42  float bin7;
43  float bin8;
44  float bin9;
45  float bin10;
46  float bin11;
47  float bin12;
48  float bin13;
49  float bin14;
50  float bin15;
51  float bin16;
52  float bin17;
53  float bin18;
54  float bin19;
55  float bin20;
56  float bin21;
57  float bin22;
58  float bin23;
59  float bin24;
60  float bin25;
61  float bin26;
62  float bin27;
63  float bin28;
64  float bin29;
65  float bin30;
66  float bin31;
67  const float* base() const { return &bin0; }
68  float* base() { return &bin0; }
69 
71 };
72 
73 #endif
CastorCalibrationQIECoder::bin6
float bin6
Definition: CastorCalibrationQIECoder.h:41
CastorCalibrationQIECoder::bin1
float bin1
Definition: CastorCalibrationQIECoder.h:36
CastorCalibrationQIECoder::bin27
float bin27
Definition: CastorCalibrationQIECoder.h:62
CastorCalibrationQIECoder::bin20
float bin20
Definition: CastorCalibrationQIECoder.h:55
CastorCalibrationQIECoder::bin25
float bin25
Definition: CastorCalibrationQIECoder.h:60
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CastorCalibrationQIECoder::bin13
float bin13
Definition: CastorCalibrationQIECoder.h:48
CastorCalibrationQIECoder::bin2
float bin2
Definition: CastorCalibrationQIECoder.h:37
CastorCalibrationQIECoder::bin26
float bin26
Definition: CastorCalibrationQIECoder.h:61
CastorCalibrationQIECoder::base
const float * base() const
Definition: CastorCalibrationQIECoder.h:67
CastorCalibrationQIECoder::bin14
float bin14
Definition: CastorCalibrationQIECoder.h:49
CastorCalibrationQIECoder::bin24
float bin24
Definition: CastorCalibrationQIECoder.h:59
CastorCalibrationQIECoder::bin19
float bin19
Definition: CastorCalibrationQIECoder.h:54
CastorCalibrationQIECoder::setMinCharges
void setMinCharges(const float fValue[32])
Definition: CastorCalibrationQIECoder.cc:46
CastorCalibrationQIECoder::minCharge
float minCharge(unsigned fBin) const
Definition: CastorCalibrationQIECoder.cc:30
CastorCalibrationQIECoder::bin30
float bin30
Definition: CastorCalibrationQIECoder.h:65
CastorCalibrationQIECoder::base
float * base()
Definition: CastorCalibrationQIECoder.h:68
CastorCalibrationQIECoder::bin22
float bin22
Definition: CastorCalibrationQIECoder.h:57
CastorCalibrationQIECoder::adc
unsigned adc(const float fCharge) const
fC -> ADC conversion
Definition: CastorCalibrationQIECoder.cc:20
CastorCalibrationQIECoder::bin10
float bin10
Definition: CastorCalibrationQIECoder.h:45
CastorCalibrationQIECoder::bin5
float bin5
Definition: CastorCalibrationQIECoder.h:40
CastorCalibrationQIECoder::setMinCharge
void setMinCharge(unsigned fBin, float fValue)
Definition: CastorCalibrationQIECoder.cc:40
CastorCalibrationQIECoder::bin28
float bin28
Definition: CastorCalibrationQIECoder.h:63
CastorCalibrationQIECoder::bin8
float bin8
Definition: CastorCalibrationQIECoder.h:43
CastorCalibrationQIECoder::bin12
float bin12
Definition: CastorCalibrationQIECoder.h:47
CastorCalibrationQIECoder::bin29
float bin29
Definition: CastorCalibrationQIECoder.h:64
CastorCalibrationQIECoder::charge
float charge(const unsigned fAdc) const
ADC [0..31] -> fC conversion.
Definition: CastorCalibrationQIECoder.cc:13
CastorCalibrationQIECoder::bin21
float bin21
Definition: CastorCalibrationQIECoder.h:56
CastorCalibrationQIECoder::bin18
float bin18
Definition: CastorCalibrationQIECoder.h:53
CastorCalibrationQIECoder::bin15
float bin15
Definition: CastorCalibrationQIECoder.h:50
Serializable.h
CastorCalibrationQIECoder::bin7
float bin7
Definition: CastorCalibrationQIECoder.h:42
CastorCalibrationQIECoder::bin23
float bin23
Definition: CastorCalibrationQIECoder.h:58
CastorCalibrationQIECoder::bin4
float bin4
Definition: CastorCalibrationQIECoder.h:39
CastorCalibrationQIECoder::bin16
float bin16
Definition: CastorCalibrationQIECoder.h:51
CastorCalibrationQIECoder::bin9
float bin9
Definition: CastorCalibrationQIECoder.h:44
CastorCalibrationQIECoder::bin17
float bin17
Definition: CastorCalibrationQIECoder.h:52
CastorCalibrationQIECoder::CastorCalibrationQIECoder
CastorCalibrationQIECoder(unsigned long fId=0)
Definition: CastorCalibrationQIECoder.h:19
CastorCalibrationQIECoder::rawId
uint32_t rawId() const
Definition: CastorCalibrationQIECoder.h:31
CastorCalibrationQIECoder::bin31
float bin31
Definition: CastorCalibrationQIECoder.h:66
CastorCalibrationQIECoder::mId
uint32_t mId
Definition: CastorCalibrationQIECoder.h:34
CastorCalibrationQIECoder::bin3
float bin3
Definition: CastorCalibrationQIECoder.h:38
CastorCalibrationQIECoder
Definition: CastorCalibrationQIECoder.h:17
CastorCalibrationQIECoder::bin0
float bin0
Definition: CastorCalibrationQIECoder.h:35
CastorCalibrationQIECoder::bin11
float bin11
Definition: CastorCalibrationQIECoder.h:46
CastorCalibrationQIECoder::minCharges
const float * minCharges() const
Definition: CastorCalibrationQIECoder.cc:35