CondFormats
HcalObjects
interface
HcalCalibrationQIECoder.h
Go to the documentation of this file.
1
#ifndef HcalCalibrationQIECoder_h
2
#define HcalCalibrationQIECoder_h
3
11
#include "
CondFormats/Serialization/interface/Serializable.h
"
12
13
#include <vector>
14
#include <algorithm>
15
#include <cstdint>
16
17
class
HcalCalibrationQIECoder
{
18
public
:
19
HcalCalibrationQIECoder
(
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
70
COND_SERIALIZABLE
;
71
};
72
73
#endif
HcalCalibrationQIECoder
Definition:
HcalCalibrationQIECoder.h:17
HcalCalibrationQIECoder::bin25
float bin25
Definition:
HcalCalibrationQIECoder.h:60
HcalCalibrationQIECoder::minCharges
const float * minCharges() const
Definition:
HcalCalibrationQIECoder.cc:34
HcalCalibrationQIECoder::bin28
float bin28
Definition:
HcalCalibrationQIECoder.h:63
HcalCalibrationQIECoder::bin10
float bin10
Definition:
HcalCalibrationQIECoder.h:45
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
HcalCalibrationQIECoder::bin8
float bin8
Definition:
HcalCalibrationQIECoder.h:43
HcalCalibrationQIECoder::minCharge
float minCharge(unsigned fBin) const
Definition:
HcalCalibrationQIECoder.cc:29
HcalCalibrationQIECoder::bin9
float bin9
Definition:
HcalCalibrationQIECoder.h:44
HcalCalibrationQIECoder::bin1
float bin1
Definition:
HcalCalibrationQIECoder.h:36
HcalCalibrationQIECoder::bin12
float bin12
Definition:
HcalCalibrationQIECoder.h:47
HcalCalibrationQIECoder::bin29
float bin29
Definition:
HcalCalibrationQIECoder.h:64
HcalCalibrationQIECoder::bin24
float bin24
Definition:
HcalCalibrationQIECoder.h:59
HcalCalibrationQIECoder::bin30
float bin30
Definition:
HcalCalibrationQIECoder.h:65
HcalCalibrationQIECoder::bin20
float bin20
Definition:
HcalCalibrationQIECoder.h:55
HcalCalibrationQIECoder::rawId
uint32_t rawId() const
Definition:
HcalCalibrationQIECoder.h:31
HcalCalibrationQIECoder::bin0
float bin0
Definition:
HcalCalibrationQIECoder.h:35
HcalCalibrationQIECoder::bin31
float bin31
Definition:
HcalCalibrationQIECoder.h:66
HcalCalibrationQIECoder::bin16
float bin16
Definition:
HcalCalibrationQIECoder.h:51
HcalCalibrationQIECoder::bin27
float bin27
Definition:
HcalCalibrationQIECoder.h:62
HcalCalibrationQIECoder::base
const float * base() const
Definition:
HcalCalibrationQIECoder.h:67
HcalCalibrationQIECoder::bin3
float bin3
Definition:
HcalCalibrationQIECoder.h:38
HcalCalibrationQIECoder::bin15
float bin15
Definition:
HcalCalibrationQIECoder.h:50
HcalCalibrationQIECoder::setMinCharge
void setMinCharge(unsigned fBin, float fValue)
Definition:
HcalCalibrationQIECoder.cc:39
Serializable.h
HcalCalibrationQIECoder::charge
float charge(const unsigned fAdc) const
ADC [0..31] -> fC conversion.
Definition:
HcalCalibrationQIECoder.cc:12
HcalCalibrationQIECoder::bin23
float bin23
Definition:
HcalCalibrationQIECoder.h:58
HcalCalibrationQIECoder::bin4
float bin4
Definition:
HcalCalibrationQIECoder.h:39
HcalCalibrationQIECoder::bin14
float bin14
Definition:
HcalCalibrationQIECoder.h:49
HcalCalibrationQIECoder::mId
uint32_t mId
Definition:
HcalCalibrationQIECoder.h:34
HcalCalibrationQIECoder::bin6
float bin6
Definition:
HcalCalibrationQIECoder.h:41
HcalCalibrationQIECoder::bin26
float bin26
Definition:
HcalCalibrationQIECoder.h:61
HcalCalibrationQIECoder::bin13
float bin13
Definition:
HcalCalibrationQIECoder.h:48
HcalCalibrationQIECoder::setMinCharges
void setMinCharges(const float fValue[32])
Definition:
HcalCalibrationQIECoder.cc:45
HcalCalibrationQIECoder::bin5
float bin5
Definition:
HcalCalibrationQIECoder.h:40
HcalCalibrationQIECoder::base
float * base()
Definition:
HcalCalibrationQIECoder.h:68
HcalCalibrationQIECoder::bin18
float bin18
Definition:
HcalCalibrationQIECoder.h:53
HcalCalibrationQIECoder::bin19
float bin19
Definition:
HcalCalibrationQIECoder.h:54
HcalCalibrationQIECoder::bin17
float bin17
Definition:
HcalCalibrationQIECoder.h:52
HcalCalibrationQIECoder::bin21
float bin21
Definition:
HcalCalibrationQIECoder.h:56
HcalCalibrationQIECoder::bin11
float bin11
Definition:
HcalCalibrationQIECoder.h:46
HcalCalibrationQIECoder::bin7
float bin7
Definition:
HcalCalibrationQIECoder.h:42
HcalCalibrationQIECoder::adc
unsigned adc(const float fCharge) const
fC -> ADC conversion
Definition:
HcalCalibrationQIECoder.cc:19
HcalCalibrationQIECoder::bin2
float bin2
Definition:
HcalCalibrationQIECoder.h:37
HcalCalibrationQIECoder::bin22
float bin22
Definition:
HcalCalibrationQIECoder.h:57
HcalCalibrationQIECoder::HcalCalibrationQIECoder
HcalCalibrationQIECoder(unsigned long fId=0)
Definition:
HcalCalibrationQIECoder.h:19
Generated for CMSSW Reference Manual by
1.8.16