CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

uint32_t mId
 
float mValue0
 
float mValue1
 
float mValue2
 
float mValue3
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

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

Definition at line 13 of file CastorGainWidth.h.

Constructor & Destructor Documentation

CastorGainWidth::CastorGainWidth ( )
inline

Definition at line 22 of file CastorGainWidth.h.

22 : 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 24 of file CastorGainWidth.h.

24  :
25  mId (fId),
26  mValue0 (fCap0),
27  mValue1 (fCap1),
28  mValue2 (fCap2),
29  mValue3 (fCap3) {}

Member Function Documentation

float CastorGainWidth::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 18 of file CastorGainWidth.h.

References getValues().

Referenced by CastorDbHardcode::makeGain().

18 {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 16 of file CastorGainWidth.h.

References mValue0.

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

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

Definition at line 31 of file CastorGainWidth.h.

References mId.

31 {return mId;}
template<class Archive >
void CastorGainWidth::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 40 of file CastorGainWidth.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 40 of file CastorGainWidth.h.

Member Data Documentation

uint32_t CastorGainWidth::mId
private

Definition at line 34 of file CastorGainWidth.h.

Referenced by rawId().

float CastorGainWidth::mValue0
private

Definition at line 35 of file CastorGainWidth.h.

Referenced by getValues().

float CastorGainWidth::mValue1
private

Definition at line 36 of file CastorGainWidth.h.

float CastorGainWidth::mValue2
private

Definition at line 37 of file CastorGainWidth.h.

float CastorGainWidth::mValue3
private

Definition at line 38 of file CastorGainWidth.h.