Main Page
Namespaces
Classes
Package Documentation
CondFormats
HcalObjects
interface
HcalPedestal.h
Go to the documentation of this file.
1
#ifndef HcalPedestal_h
2
#define HcalPedestal_h
3
12
#include "
CondFormats/Serialization/interface/Serializable.h
"
13
14
#include <boost/cstdint.hpp>
15
16
class
HcalPedestal
{
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
30
HcalPedestal
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0),
31
mWidth0
(0),
mWidth1
(0),
mWidth2
(0),
mWidth3
(0) {}
32
33
HcalPedestal
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3,
34
float
wCap0 = 0,
float
wCap1 = 0,
float
wCap2 = 0,
float
wCap3 = 0) :
35
mId
(fId),
mValue0
(fCap0),
mValue1
(fCap1),
mValue2
(fCap2),
mValue3
(fCap3),
36
mWidth0
(wCap0),
mWidth1
(wCap1),
mWidth2
(wCap2),
mWidth3
(wCap3) {}
37
38
uint32_t
rawId
()
const
{
return
mId
;}
39
private
:
40
uint32_t
mId
;
41
float
mValue0
;
42
float
mValue1
;
43
float
mValue2
;
44
float
mValue3
;
45
float
mWidth0
;
46
float
mWidth1
;
47
float
mWidth2
;
48
float
mWidth3
;
49
50
COND_SERIALIZABLE
;
51
};
52
53
#endif
HcalPedestal::mWidth3
float mWidth3
Definition:
HcalPedestal.h:48
HcalPedestal::mWidth1
float mWidth1
Definition:
HcalPedestal.h:46
HcalPedestal::HcalPedestal
HcalPedestal()
Definition:
HcalPedestal.h:30
HcalPedestal::mValue0
float mValue0
Definition:
HcalPedestal.h:41
HcalPedestal::getWidth
float getWidth(int fCapId) const
get width for capId = 0..3
Definition:
HcalPedestal.h:26
HcalPedestal::rawId
uint32_t rawId() const
Definition:
HcalPedestal.h:38
HcalPedestal::getWidths
const float * getWidths() const
get width for all capId = 0..3
Definition:
HcalPedestal.h:24
HcalPedestal::mValue3
float mValue3
Definition:
HcalPedestal.h:44
HcalPedestal::mValue1
float mValue1
Definition:
HcalPedestal.h:42
HcalPedestal::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
HcalPedestal.h:21
HcalPedestal::HcalPedestal
HcalPedestal(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3, float wCap0=0, float wCap1=0, float wCap2=0, float wCap3=0)
Definition:
HcalPedestal.h:33
HcalPedestal
Definition:
HcalPedestal.h:16
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
HcalPedestal::mId
uint32_t mId
Definition:
HcalPedestal.h:40
HcalPedestal::mValue2
float mValue2
Definition:
HcalPedestal.h:43
HcalPedestal::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
HcalPedestal.h:19
HcalPedestal::mWidth2
float mWidth2
Definition:
HcalPedestal.h:47
Serializable.h
HcalPedestal::mWidth0
float mWidth0
Definition:
HcalPedestal.h:45
Generated for CMSSW Reference Manual by
1.8.11