CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorGainWidth Class Reference

#include <CastorGainWidth.h>

List of all members.

Public Member Functions

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

Author:
Panos Katsas (UoA) POOL object to store GainWidth values 4xCapId

Definition at line 11 of file CastorGainWidth.h.


Constructor & Destructor Documentation

CastorGainWidth::CastorGainWidth ( ) [inline]

Definition at line 20 of file CastorGainWidth.h.

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

Definition at line 22 of file CastorGainWidth.h.

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

Member Function Documentation

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

get value for capId = 0..3

Definition at line 16 of file CastorGainWidth.h.

References getValues().

Referenced by CastorDbHardcode::makeGain().

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

get value for all capId = 0..3

Definition at line 14 of file CastorGainWidth.h.

References mValue0.

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

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

Definition at line 29 of file CastorGainWidth.h.

References mId.

{return mId;}

Member Data Documentation

uint32_t CastorGainWidth::mId [private]

Definition at line 32 of file CastorGainWidth.h.

Referenced by rawId().

float CastorGainWidth::mValue0 [private]

Definition at line 33 of file CastorGainWidth.h.

Referenced by getValues().

float CastorGainWidth::mValue1 [private]

Definition at line 34 of file CastorGainWidth.h.

float CastorGainWidth::mValue2 [private]

Definition at line 35 of file CastorGainWidth.h.

float CastorGainWidth::mValue3 [private]

Definition at line 36 of file CastorGainWidth.h.