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