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 12 of file CastorGainWidth.h.

Constructor & Destructor Documentation

◆ CastorGainWidth() [1/2]

CastorGainWidth::CastorGainWidth ( )
inline

Definition at line 21 of file CastorGainWidth.h.

21 : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}

◆ CastorGainWidth() [2/2]

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

◆ getValue()

float CastorGainWidth::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 17 of file CastorGainWidth.h.

17 { return *(getValues() + fCapId); }

References getValues().

◆ getValues()

const float* CastorGainWidth::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 15 of file CastorGainWidth.h.

15 { return &mValue0; }

References mValue0.

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

◆ rawId()

uint32_t CastorGainWidth::rawId ( ) const
inline

Definition at line 26 of file CastorGainWidth.h.

26 { return mId; }

References mId.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 35 of file CastorGainWidth.h.

◆ cond::serialization::access

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

Definition at line 35 of file CastorGainWidth.h.

Member Data Documentation

◆ mId

uint32_t CastorGainWidth::mId
private

Definition at line 29 of file CastorGainWidth.h.

Referenced by rawId().

◆ mValue0

float CastorGainWidth::mValue0
private

Definition at line 30 of file CastorGainWidth.h.

Referenced by getValues().

◆ mValue1

float CastorGainWidth::mValue1
private

Definition at line 31 of file CastorGainWidth.h.

◆ mValue2

float CastorGainWidth::mValue2
private

Definition at line 32 of file CastorGainWidth.h.

◆ mValue3

float CastorGainWidth::mValue3
private

Definition at line 33 of file CastorGainWidth.h.

CastorGainWidth::mId
uint32_t mId
Definition: CastorGainWidth.h:29
CastorGainWidth::getValues
const float * getValues() const
get value for all capId = 0..3
Definition: CastorGainWidth.h:15
CastorGainWidth::mValue0
float mValue0
Definition: CastorGainWidth.h:30
CastorGainWidth::mValue1
float mValue1
Definition: CastorGainWidth.h:31
CastorGainWidth::mValue3
float mValue3
Definition: CastorGainWidth.h:33
CastorGainWidth::mValue2
float mValue2
Definition: CastorGainWidth.h:32