CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 12 of file CastorGainWidth.h.

Constructor & Destructor Documentation

CastorGainWidth::CastorGainWidth ( )
inline

Definition at line 21 of file CastorGainWidth.h.

CastorGainWidth::CastorGainWidth ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3 
)
inline

Definition at line 23 of file CastorGainWidth.h.

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

References getValues().

Referenced by CastorDbHardcode::makeGain().

17 { 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 15 of file CastorGainWidth.h.

References mValue0.

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

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

Definition at line 26 of file CastorGainWidth.h.

References mId.

26 { 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 35 of file CastorGainWidth.h.

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

Definition at line 35 of file CastorGainWidth.h.

Member Data Documentation

uint32_t CastorGainWidth::mId
private

Definition at line 29 of file CastorGainWidth.h.

Referenced by rawId().

float CastorGainWidth::mValue0
private

Definition at line 30 of file CastorGainWidth.h.

Referenced by getValues().

float CastorGainWidth::mValue1
private

Definition at line 31 of file CastorGainWidth.h.

float CastorGainWidth::mValue2
private

Definition at line 32 of file CastorGainWidth.h.

float CastorGainWidth::mValue3
private

Definition at line 33 of file CastorGainWidth.h.