Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#include <cstdint>
15
16
class
HcalGain
{
17
public
:
19
const
float
*
getValues
()
const
{
return
&
mValue0
; }
21
float
getValue
(
int
fCapId)
const
{
return
*(
getValues
() + fCapId); }
22
23
// functions below are not supposed to be used by consumer applications
24
25
HcalGain
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0) {}
26
27
HcalGain
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3)
28
:
mId
(fId),
mValue0
(fCap0),
mValue1
(fCap1),
mValue2
(fCap2),
mValue3
(fCap3) {}
29
30
uint32_t
rawId
()
const
{
return
mId
; }
31
32
private
:
33
uint32_t
mId
;
34
float
mValue0
;
35
float
mValue1
;
36
float
mValue2
;
37
float
mValue3
;
38
39
COND_SERIALIZABLE
;
40
};
41
42
#endif
HcalGain
Definition:
HcalGain.h:16
HcalGain::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
HcalGain.h:21
HcalGain::mValue0
float mValue0
Definition:
HcalGain.h:34
HcalGain::mValue3
float mValue3
Definition:
HcalGain.h:37
HcalGain::rawId
uint32_t rawId() const
Definition:
HcalGain.h:30
HcalGain::HcalGain
HcalGain()
Definition:
HcalGain.h:25
HcalGain::mValue1
float mValue1
Definition:
HcalGain.h:35
HcalGain::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
HcalGain.h:19
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
HcalGain::mId
uint32_t mId
Definition:
HcalGain.h:33
Serializable.h
HcalGain::HcalGain
HcalGain(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition:
HcalGain.h:27
HcalGain::mValue2
float mValue2
Definition:
HcalGain.h:36
Generated for CMSSW Reference Manual by
1.8.5