Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
HcalObjects
interface
HcalGainWidth.h
Go to the documentation of this file.
1
#ifndef HcalGainWidth_h
2
#define HcalGainWidth_h
3
12
#include "
CondFormats/Serialization/interface/Serializable.h
"
13
14
#include <boost/cstdint.hpp>
15
16
class
HcalGainWidth
{
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
HcalGainWidth
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0) {}
26
27
HcalGainWidth
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3) :
28
mId
(fId),
29
mValue0
(fCap0),
30
mValue1
(fCap1),
31
mValue2
(fCap2),
32
mValue3
(fCap3) {}
33
34
uint32_t
rawId
()
const
{
return
mId
;}
35
36
private
:
37
uint32_t
mId
;
38
float
mValue0
;
39
float
mValue1
;
40
float
mValue2
;
41
float
mValue3
;
42
43
COND_SERIALIZABLE
;
44
};
45
46
#endif
HcalGainWidth::HcalGainWidth
HcalGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition:
HcalGainWidth.h:27
HcalGainWidth::mValue3
float mValue3
Definition:
HcalGainWidth.h:41
HcalGainWidth::mValue2
float mValue2
Definition:
HcalGainWidth.h:40
HcalGainWidth::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
HcalGainWidth.h:21
HcalGainWidth::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
HcalGainWidth.h:19
HcalGainWidth::COND_SERIALIZABLE
COND_SERIALIZABLE
Definition:
HcalGainWidth.h:43
HcalGainWidth::mId
uint32_t mId
Definition:
HcalGainWidth.h:37
HcalGainWidth::rawId
uint32_t rawId() const
Definition:
HcalGainWidth.h:34
HcalGainWidth::mValue1
float mValue1
Definition:
HcalGainWidth.h:39
HcalGainWidth::mValue0
float mValue0
Definition:
HcalGainWidth.h:38
HcalGainWidth::HcalGainWidth
HcalGainWidth()
Definition:
HcalGainWidth.h:25
Serializable.h
HcalGainWidth
Definition:
HcalGainWidth.h:16
Generated for CMSSW Reference Manual by
1.8.5