CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CastorGainWidth Class Reference

#include <CastorGainWidth.h>

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 More...
 
const float * getValues () const
 get value for all capId = 0..3 More...
 
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.

20 : 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.

22  :
23  mId (fId),
24  mValue0 (fCap0),
25  mValue1 (fCap1),
26  mValue2 (fCap2),
27  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().

16 {return *(getValues () + fCapId);}
const float * getValues() const
get value for all capId = 0..3
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().

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

Definition at line 29 of file CastorGainWidth.h.

References mId.

29 {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.