CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CastorRawGain Class Reference

#include <CastorRawGain.h>

List of all members.

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.

{GOOD = 0, BAD = 1};

Constructor & Destructor Documentation

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

Definition at line 21 of file CastorRawGain.h.

: mId (fId), mValue (0), mError (0), mVoltage (0), mStatus (int (BAD)) {}
CastorRawGain::CastorRawGain ( unsigned long  fId,
float  fValue,
float  fError,
float  fVoltage,
Status  fStatus 
) [inline]

Definition at line 23 of file CastorRawGain.h.

                                                                                                :
    mId (fId),
    mValue (fValue),
    mError (fError),
    mVoltage (fVoltage),
    mStatus (int (fStatus)) {}

Member Function Documentation

float CastorRawGain::getError ( ) const [inline]

Definition at line 15 of file CastorRawGain.h.

References mError.

Referenced by CastorRawGains::addValues().

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

Definition at line 17 of file CastorRawGain.h.

References mStatus.

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

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

Definition at line 14 of file CastorRawGain.h.

References mValue.

Referenced by CastorRawGains::addValues().

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

Definition at line 16 of file CastorRawGain.h.

References mVoltage.

Referenced by CastorRawGains::addValues().

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

Definition at line 30 of file CastorRawGain.h.

References mId.

{return mId;}
std::string CastorRawGain::strStatus ( ) const [inline]

Definition at line 18 of file CastorRawGain.h.

References getStatus(), and GOOD.

{return getStatus () == GOOD ? "GOOD" : "BAD";}

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().