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

◆ Status

Enumerator
GOOD 
BAD 

Definition at line 14 of file CastorRawGain.h.

Constructor & Destructor Documentation

◆ CastorRawGain() [1/2]

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:29

◆ CastorRawGain() [2/2]

CastorRawGain::CastorRawGain ( unsigned long  fId,
float  fValue,
float  fError,
float  fVoltage,
Status  fStatus 
)
inline

Definition at line 23 of file CastorRawGain.h.

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

Member Function Documentation

◆ getError()

float CastorRawGain::getError ( ) const
inline

Definition at line 16 of file CastorRawGain.h.

References mError.

Referenced by CastorRawGains::addValues().

16 { return mError; }

◆ getStatus()

Status CastorRawGain::getStatus ( ) const
inline

Definition at line 18 of file CastorRawGain.h.

References mStatus.

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

18 { return Status(mStatus); }

◆ getValue()

float CastorRawGain::getValue ( ) const
inline

Definition at line 15 of file CastorRawGain.h.

References mValue.

Referenced by CastorRawGains::addValues().

15 { return mValue; }

◆ getVoltage()

float CastorRawGain::getVoltage ( ) const
inline

Definition at line 17 of file CastorRawGain.h.

References mVoltage.

Referenced by CastorRawGains::addValues().

17 { return mVoltage; }

◆ rawId()

uint32_t CastorRawGain::rawId ( ) const
inline

Definition at line 26 of file CastorRawGain.h.

References mId.

26 { return mId; }
uint32_t mId
Definition: CastorRawGain.h:29

◆ strStatus()

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

◆ mError

float CastorRawGain::mError
private

Definition at line 31 of file CastorRawGain.h.

Referenced by getError().

◆ mId

uint32_t CastorRawGain::mId
private

Definition at line 29 of file CastorRawGain.h.

Referenced by rawId().

◆ mStatus

int CastorRawGain::mStatus
private

Definition at line 33 of file CastorRawGain.h.

Referenced by getStatus().

◆ mValue

float CastorRawGain::mValue
private

Definition at line 30 of file CastorRawGain.h.

Referenced by getValue().

◆ mVoltage

float CastorRawGain::mVoltage
private

Definition at line 32 of file CastorRawGain.h.

Referenced by getVoltage().