Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
HcalObjects
interface
HcalRawGain.h
Go to the documentation of this file.
1
#ifndef HcalRawGain_h
2
#define HcalRawGain_h
3
12
#include <boost/cstdint.hpp>
13
14
class
HcalRawGain
{
15
public
:
16
enum
Status
{
GOOD
= 0,
BAD
= 1};
17
float
getValue
()
const
{
return
mValue
;}
18
float
getError
()
const
{
return
mError
;}
19
float
getVoltage
()
const
{
return
mVoltage
;}
20
Status
getStatus
()
const
{
return
Status
(
mStatus
);}
21
std::string
strStatus
()
const
{
return
getStatus
() ==
GOOD
?
"GOOD"
:
"BAD"
;}
22
23
24
HcalRawGain
(
unsigned
long
fId = 0) :
mId
(fId),
mValue
(0),
mError
(0),
mVoltage
(0),
mStatus
(int (
BAD
)) {}
25
26
HcalRawGain
(
unsigned
long
fId,
float
fValue,
float
fError,
float
fVoltage,
Status
fStatus) :
27
mId
(fId),
28
mValue
(fValue),
29
mError
(fError),
30
mVoltage
(fVoltage),
31
mStatus
(int (fStatus)) {}
32
33
uint32_t
rawId
()
const
{
return
mId
;}
34
35
private
:
36
uint32_t
mId
;
37
float
mValue
;
38
float
mError
;
39
float
mVoltage
;
40
int
mStatus
;
41
};
42
43
#endif
HcalRawGain::strStatus
std::string strStatus() const
Definition:
HcalRawGain.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
HcalRawGain::getValue
float getValue() const
Definition:
HcalRawGain.h:17
HcalRawGain::HcalRawGain
HcalRawGain(unsigned long fId, float fValue, float fError, float fVoltage, Status fStatus)
Definition:
HcalRawGain.h:26
HcalRawGain::HcalRawGain
HcalRawGain(unsigned long fId=0)
Definition:
HcalRawGain.h:24
HcalRawGain::getError
float getError() const
Definition:
HcalRawGain.h:18
HcalRawGain::mId
uint32_t mId
Definition:
HcalRawGain.h:36
HcalRawGain::Status
Status
Definition:
HcalRawGain.h:16
HcalRawGain::getVoltage
float getVoltage() const
Definition:
HcalRawGain.h:19
HcalRawGain::BAD
Definition:
HcalRawGain.h:16
HcalRawGain::mError
float mError
Definition:
HcalRawGain.h:38
HcalRawGain::mValue
float mValue
Definition:
HcalRawGain.h:37
HcalRawGain::GOOD
Definition:
HcalRawGain.h:16
HcalRawGain::rawId
uint32_t rawId() const
Definition:
HcalRawGain.h:33
HcalRawGain::mVoltage
float mVoltage
Definition:
HcalRawGain.h:39
HcalRawGain::getStatus
Status getStatus() const
Definition:
HcalRawGain.h:20
HcalRawGain::mStatus
int mStatus
Definition:
HcalRawGain.h:40
HcalRawGain
Definition:
HcalRawGain.h:14
Generated for CMSSW Reference Manual by
1.8.5