CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HcalRawGain Class Reference

#include <HcalRawGain.h>

Public Types

enum  Status { GOOD = 0, BAD = 1 }
 

Public Member Functions

float getError () const
 
Status getStatus () const
 
float getValue () const
 
float getVoltage () const
 
 HcalRawGain (unsigned long fId=0)
 
 HcalRawGain (unsigned long fId, float fValue, float fError, float fVoltage, Status fStatus)
 
uint32_t rawId () const
 
std::string strStatus () const
 

Private Attributes

float mError
 
uint32_t mId
 
int mStatus
 
float mValue
 
float mVoltage
 

Detailed Description

Author
Fedor Ratnikov (UMd) POOL object to store raw Gain values $Author: ratnikov
Date
2007/12/10 18:38:20
Revision
1.4

Definition at line 15 of file HcalRawGain.h.

Member Enumeration Documentation

Enumerator
GOOD 
BAD 

Definition at line 17 of file HcalRawGain.h.

Constructor & Destructor Documentation

HcalRawGain::HcalRawGain ( unsigned long  fId = 0)
inline

Definition at line 24 of file HcalRawGain.h.

24 : mId(fId), mValue(0), mError(0), mVoltage(0), mStatus(int(BAD)) {}
uint32_t mId
Definition: HcalRawGain.h:32
float mError
Definition: HcalRawGain.h:34
float mValue
Definition: HcalRawGain.h:33
float mVoltage
Definition: HcalRawGain.h:35
HcalRawGain::HcalRawGain ( unsigned long  fId,
float  fValue,
float  fError,
float  fVoltage,
Status  fStatus 
)
inline

Definition at line 26 of file HcalRawGain.h.

27  : mId(fId), mValue(fValue), mError(fError), mVoltage(fVoltage), mStatus(int(fStatus)) {}
uint32_t mId
Definition: HcalRawGain.h:32
float mError
Definition: HcalRawGain.h:34
float mValue
Definition: HcalRawGain.h:33
float mVoltage
Definition: HcalRawGain.h:35

Member Function Documentation

float HcalRawGain::getError ( ) const
inline

Definition at line 19 of file HcalRawGain.h.

References mError.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

19 { return mError; }
float mError
Definition: HcalRawGain.h:34
Status HcalRawGain::getStatus ( ) const
inline

Definition at line 21 of file HcalRawGain.h.

References mStatus.

Referenced by HcalRawGains::addValues(), and strStatus().

21 { return Status(mStatus); }
float HcalRawGain::getValue ( ) const
inline

Definition at line 18 of file HcalRawGain.h.

References mValue.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

18 { return mValue; }
float mValue
Definition: HcalRawGain.h:33
float HcalRawGain::getVoltage ( ) const
inline

Definition at line 20 of file HcalRawGain.h.

References mVoltage.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

20 { return mVoltage; }
float mVoltage
Definition: HcalRawGain.h:35
uint32_t HcalRawGain::rawId ( ) const
inline

Definition at line 29 of file HcalRawGain.h.

References mId.

29 { return mId; }
uint32_t mId
Definition: HcalRawGain.h:32
std::string HcalRawGain::strStatus ( ) const
inline

Definition at line 22 of file HcalRawGain.h.

References getStatus(), and GOOD.

Referenced by XMLDocument::addData().

22 { return getStatus() == GOOD ? "GOOD" : "BAD"; }
Status getStatus() const
Definition: HcalRawGain.h:21

Member Data Documentation

float HcalRawGain::mError
private

Definition at line 34 of file HcalRawGain.h.

Referenced by getError().

uint32_t HcalRawGain::mId
private

Definition at line 32 of file HcalRawGain.h.

Referenced by rawId().

int HcalRawGain::mStatus
private

Definition at line 36 of file HcalRawGain.h.

Referenced by getStatus().

float HcalRawGain::mValue
private

Definition at line 33 of file HcalRawGain.h.

Referenced by getValue().

float HcalRawGain::mVoltage
private

Definition at line 35 of file HcalRawGain.h.

Referenced by getVoltage().