CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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, float fValue, float fError, float fVoltage, Status fStatus)
 
 HcalRawGain (unsigned long fId=0)
 
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

◆ Status

Enumerator
GOOD 
BAD 

Definition at line 17 of file HcalRawGain.h.

17 { GOOD = 0, BAD = 1 };

Constructor & Destructor Documentation

◆ HcalRawGain() [1/2]

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

Definition at line 24 of file HcalRawGain.h.

24 : mId(fId), mValue(0), mError(0), mVoltage(0), mStatus(int(BAD)) {}

◆ HcalRawGain() [2/2]

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

Definition at line 26 of file HcalRawGain.h.

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

Member Function Documentation

◆ getError()

float HcalRawGain::getError ( ) const
inline

Definition at line 19 of file HcalRawGain.h.

19 { return mError; }

References mError.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

◆ getStatus()

Status HcalRawGain::getStatus ( ) const
inline

Definition at line 21 of file HcalRawGain.h.

21 { return Status(mStatus); }

References mStatus.

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

◆ getValue()

float HcalRawGain::getValue ( ) const
inline

Definition at line 18 of file HcalRawGain.h.

18 { return mValue; }

References mValue.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

◆ getVoltage()

float HcalRawGain::getVoltage ( ) const
inline

Definition at line 20 of file HcalRawGain.h.

20 { return mVoltage; }

References mVoltage.

Referenced by XMLDocument::addData(), and HcalRawGains::addValues().

◆ rawId()

uint32_t HcalRawGain::rawId ( ) const
inline

Definition at line 29 of file HcalRawGain.h.

29 { return mId; }

References mId.

◆ strStatus()

std::string HcalRawGain::strStatus ( ) const
inline

Definition at line 22 of file HcalRawGain.h.

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

References getStatus(), and GOOD.

Referenced by XMLDocument::addData().

Member Data Documentation

◆ mError

float HcalRawGain::mError
private

Definition at line 34 of file HcalRawGain.h.

Referenced by getError().

◆ mId

uint32_t HcalRawGain::mId
private

Definition at line 32 of file HcalRawGain.h.

Referenced by rawId().

◆ mStatus

int HcalRawGain::mStatus
private

Definition at line 36 of file HcalRawGain.h.

Referenced by getStatus().

◆ mValue

float HcalRawGain::mValue
private

Definition at line 33 of file HcalRawGain.h.

Referenced by getValue().

◆ mVoltage

float HcalRawGain::mVoltage
private

Definition at line 35 of file HcalRawGain.h.

Referenced by getVoltage().

HcalRawGain::getStatus
Status getStatus() const
Definition: HcalRawGain.h:21
HcalRawGain::mId
uint32_t mId
Definition: HcalRawGain.h:32
HcalRawGain::GOOD
Definition: HcalRawGain.h:17
HcalRawGain::mValue
float mValue
Definition: HcalRawGain.h:33
HcalRawGain::Status
Status
Definition: HcalRawGain.h:17
HcalRawGain::mError
float mError
Definition: HcalRawGain.h:34
HcalRawGain::BAD
Definition: HcalRawGain.h:17
HcalRawGain::mVoltage
float mVoltage
Definition: HcalRawGain.h:35
HcalRawGain::mStatus
int mStatus
Definition: HcalRawGain.h:36