Main Page
Namespaces
Classes
Package Documentation
CondFormats
HcalObjects
interface
HcalGain.h
Go to the documentation of this file.
1
#ifndef HcalGain_h
2
#define HcalGain_h
3
13
#include "
CondFormats/Serialization/interface/Serializable.h
"
14
15
#include <boost/cstdint.hpp>
16
17
class
HcalGain
{
18
public
:
20
const
float
*
getValues
()
const
{
return
&
mValue0
;}
22
float
getValue
(
int
fCapId)
const
{
return
*(
getValues
() + fCapId);}
23
24
// functions below are not supposed to be used by consumer applications
25
26
HcalGain
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0) {}
27
28
HcalGain
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3) :
29
mId
(fId),
30
mValue0
(fCap0),
31
mValue1
(fCap1),
32
mValue2
(fCap2),
33
mValue3
(fCap3) {}
34
35
uint32_t
rawId
()
const
{
return
mId
;}
36
37
private
:
38
uint32_t
mId
;
39
float
mValue0
;
40
float
mValue1
;
41
float
mValue2
;
42
float
mValue3
;
43
44
COND_SERIALIZABLE
;
45
};
46
47
#endif
HcalGain
Definition:
HcalGain.h:17
HcalGain::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
HcalGain.h:22
HcalGain::mValue0
float mValue0
Definition:
HcalGain.h:39
HcalGain::mValue3
float mValue3
Definition:
HcalGain.h:42
HcalGain::rawId
uint32_t rawId() const
Definition:
HcalGain.h:35
HcalGain::HcalGain
HcalGain()
Definition:
HcalGain.h:26
HcalGain::mValue1
float mValue1
Definition:
HcalGain.h:40
HcalGain::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
HcalGain.h:20
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
HcalGain::mId
uint32_t mId
Definition:
HcalGain.h:38
Serializable.h
HcalGain::HcalGain
HcalGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition:
HcalGain.h:28
HcalGain::mValue2
float mValue2
Definition:
HcalGain.h:41
Generated for CMSSW Reference Manual by
1.8.11