CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorGain Class Reference

#include <CastorGain.h>

List of all members.

Public Member Functions

 CastorGain ()
 CastorGain (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
float getValue (int fCapId) const
 get value for capId = 0..3
const float * getValues () const
 get value for all capId = 0..3
uint32_t rawId () const

Private Attributes

uint32_t mId
float mValue0
float mValue1
float mValue2
float mValue3

Detailed Description

Definition at line 12 of file CastorGain.h.


Constructor & Destructor Documentation

CastorGain::CastorGain ( ) [inline]

Definition at line 21 of file CastorGain.h.

: mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
CastorGain::CastorGain ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3 
) [inline]

Definition at line 23 of file CastorGain.h.

                                                                                     :
    mId (fId),
    mValue0 (fCap0),
    mValue1 (fCap1),
    mValue2 (fCap2),
    mValue3 (fCap3) {}

Member Function Documentation

float CastorGain::getValue ( int  fCapId) const [inline]

get value for capId = 0..3

Definition at line 17 of file CastorGain.h.

References getValues().

Referenced by CastorSimParameters::fCtoGeV().

{return *(getValues () + fCapId);}
const float* CastorGain::getValues ( ) const [inline]

get value for all capId = 0..3

Definition at line 15 of file CastorGain.h.

References mValue0.

Referenced by CastorDbXml::dumpObject(), getValue(), and CastorDbService::makeCastorCalibration().

{return &mValue0;}
uint32_t CastorGain::rawId ( ) const [inline]

Definition at line 30 of file CastorGain.h.

References mId.

{return mId;}

Member Data Documentation

uint32_t CastorGain::mId [private]

Definition at line 33 of file CastorGain.h.

Referenced by rawId().

float CastorGain::mValue0 [private]

Definition at line 34 of file CastorGain.h.

Referenced by getValues().

float CastorGain::mValue1 [private]

Definition at line 35 of file CastorGain.h.

float CastorGain::mValue2 [private]

Definition at line 36 of file CastorGain.h.

float CastorGain::mValue3 [private]

Definition at line 37 of file CastorGain.h.