CMS 3D CMS Logo

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

#include <CastorRawGain.h>

Public Types

enum  Status { GOOD = 0, BAD = 1 }
 

Public Member Functions

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

Private Attributes

float mError
 
uint32_t mId
 
int mStatus
 
float mValue
 
float mVoltage
 

Detailed Description

Author
Panos Katsas (UoA) POOL object to store raw Gain values

Definition at line 12 of file CastorRawGain.h.

Member Enumeration Documentation

Enumerator
GOOD 
BAD 

Definition at line 14 of file CastorRawGain.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file CastorRawGain.h.

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

Definition at line 24 of file CastorRawGain.h.

24  :
25  mId (fId),
26  mValue (fValue),
27  mError (fError),
28  mVoltage (fVoltage),
29  mStatus (int (fStatus)) {}
uint32_t mId
Definition: CastorRawGain.h:34

Member Function Documentation

float CastorRawGain::getError ( ) const
inline

Definition at line 16 of file CastorRawGain.h.

References mError.

Referenced by CastorRawGains::addValues().

16 {return mError;}
Status CastorRawGain::getStatus ( ) const
inline

Definition at line 18 of file CastorRawGain.h.

References mStatus.

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

float CastorRawGain::getValue ( ) const
inline

Definition at line 15 of file CastorRawGain.h.

References mValue.

Referenced by CastorRawGains::addValues().

15 {return mValue;}
float CastorRawGain::getVoltage ( ) const
inline

Definition at line 17 of file CastorRawGain.h.

References mVoltage.

Referenced by CastorRawGains::addValues().

17 {return mVoltage;}
uint32_t CastorRawGain::rawId ( ) const
inline

Definition at line 31 of file CastorRawGain.h.

References mId.

31 {return mId;}
uint32_t mId
Definition: CastorRawGain.h:34
std::string CastorRawGain::strStatus ( ) const
inline

Definition at line 19 of file CastorRawGain.h.

References getStatus(), and GOOD.

19 {return getStatus () == GOOD ? "GOOD" : "BAD";}
Status getStatus() const
Definition: CastorRawGain.h:18

Member Data Documentation

float CastorRawGain::mError
private

Definition at line 36 of file CastorRawGain.h.

Referenced by getError().

uint32_t CastorRawGain::mId
private

Definition at line 34 of file CastorRawGain.h.

Referenced by rawId().

int CastorRawGain::mStatus
private

Definition at line 38 of file CastorRawGain.h.

Referenced by getStatus().

float CastorRawGain::mValue
private

Definition at line 35 of file CastorRawGain.h.

Referenced by getValue().

float CastorRawGain::mVoltage
private

Definition at line 37 of file CastorRawGain.h.

Referenced by getVoltage().