CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 11 of file CastorRawGain.h.

Member Enumeration Documentation

Enumerator
GOOD 
BAD 

Definition at line 13 of file CastorRawGain.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file CastorRawGain.h.

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

Definition at line 23 of file CastorRawGain.h.

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

Member Function Documentation

float CastorRawGain::getError ( ) const
inline

Definition at line 15 of file CastorRawGain.h.

References mError.

Referenced by CastorRawGains::addValues().

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

Definition at line 17 of file CastorRawGain.h.

References mStatus.

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

17 {return Status (mStatus);}
float CastorRawGain::getValue ( ) const
inline

Definition at line 14 of file CastorRawGain.h.

References mValue.

Referenced by CastorRawGains::addValues().

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

Definition at line 16 of file CastorRawGain.h.

References mVoltage.

Referenced by CastorRawGains::addValues().

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

Definition at line 30 of file CastorRawGain.h.

References mId.

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

Definition at line 18 of file CastorRawGain.h.

References getStatus(), and GOOD.

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

Member Data Documentation

float CastorRawGain::mError
private

Definition at line 35 of file CastorRawGain.h.

Referenced by getError().

uint32_t CastorRawGain::mId
private

Definition at line 33 of file CastorRawGain.h.

Referenced by rawId().

int CastorRawGain::mStatus
private

Definition at line 37 of file CastorRawGain.h.

Referenced by getStatus().

float CastorRawGain::mValue
private

Definition at line 34 of file CastorRawGain.h.

Referenced by getValue().

float CastorRawGain::mVoltage
private

Definition at line 36 of file CastorRawGain.h.

Referenced by getVoltage().