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