CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

HcalRawGain Class Reference

#include <HcalRawGain.h>

List of all members.

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/14 13:32:31
Revision:
1.5

Definition at line 14 of file HcalRawGain.h.


Member Enumeration Documentation

Enumerator:
GOOD 
BAD 

Definition at line 16 of file HcalRawGain.h.

{GOOD = 0, BAD = 1};

Constructor & Destructor Documentation

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

Definition at line 24 of file HcalRawGain.h.

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

Definition at line 26 of file HcalRawGain.h.

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

Member Function Documentation

float HcalRawGain::getError ( ) const [inline]

Definition at line 18 of file HcalRawGain.h.

References mError.

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

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

Definition at line 20 of file HcalRawGain.h.

References mStatus.

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

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

Definition at line 17 of file HcalRawGain.h.

References mValue.

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

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

Definition at line 19 of file HcalRawGain.h.

References mVoltage.

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

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

Definition at line 33 of file HcalRawGain.h.

References mId.

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

Definition at line 21 of file HcalRawGain.h.

References getStatus(), and GOOD.

Referenced by XMLDocument::addData().

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

Member Data Documentation

float HcalRawGain::mError [private]

Definition at line 38 of file HcalRawGain.h.

Referenced by getError().

uint32_t HcalRawGain::mId [private]

Definition at line 36 of file HcalRawGain.h.

Referenced by rawId().

int HcalRawGain::mStatus [private]

Definition at line 40 of file HcalRawGain.h.

Referenced by getStatus().

float HcalRawGain::mValue [private]

Definition at line 37 of file HcalRawGain.h.

Referenced by getValue().

float HcalRawGain::mVoltage [private]

Definition at line 39 of file HcalRawGain.h.

Referenced by getVoltage().