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 25 of file HcalRawGain.h.

25 : mId (fId), mValue (0), mError (0), mVoltage (0), mStatus (int (BAD)) {}
uint32_t mId
Definition: HcalRawGain.h:37
float mError
Definition: HcalRawGain.h:39
float mValue
Definition: HcalRawGain.h:38
float mVoltage
Definition: HcalRawGain.h:40
HcalRawGain::HcalRawGain ( unsigned long  fId,
float  fValue,
float  fError,
float  fVoltage,
Status  fStatus 
)
inline

Definition at line 27 of file HcalRawGain.h.

27  :
28  mId (fId),
29  mValue (fValue),
30  mError (fError),
31  mVoltage (fVoltage),
32  mStatus (int (fStatus)) {}
uint32_t mId
Definition: HcalRawGain.h:37
float mError
Definition: HcalRawGain.h:39
float mValue
Definition: HcalRawGain.h:38
float mVoltage
Definition: HcalRawGain.h:40

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:39
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:38
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:40
uint32_t HcalRawGain::rawId ( ) const
inline

Definition at line 34 of file HcalRawGain.h.

References mId.

34 {return mId;}
uint32_t mId
Definition: HcalRawGain.h:37
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 39 of file HcalRawGain.h.

Referenced by getError().

uint32_t HcalRawGain::mId
private

Definition at line 37 of file HcalRawGain.h.

Referenced by rawId().

int HcalRawGain::mStatus
private

Definition at line 41 of file HcalRawGain.h.

Referenced by getStatus().

float HcalRawGain::mValue
private

Definition at line 38 of file HcalRawGain.h.

Referenced by getValue().

float HcalRawGain::mVoltage
private

Definition at line 40 of file HcalRawGain.h.

Referenced by getVoltage().