CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
CastorGain Class Reference

#include <CastorGain.h>

Public Member Functions

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

Definition at line 13 of file CastorGain.h.

Constructor & Destructor Documentation

◆ CastorGain() [1/2]

CastorGain::CastorGain ( )
inline

Definition at line 22 of file CastorGain.h.

22 : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
float mValue1
Definition: CastorGain.h:32
float mValue0
Definition: CastorGain.h:31
uint32_t mId
Definition: CastorGain.h:30
float mValue3
Definition: CastorGain.h:34
float mValue2
Definition: CastorGain.h:33

◆ CastorGain() [2/2]

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

Definition at line 24 of file CastorGain.h.

25  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
float mValue1
Definition: CastorGain.h:32
float mValue0
Definition: CastorGain.h:31
uint32_t mId
Definition: CastorGain.h:30
float mValue3
Definition: CastorGain.h:34
float mValue2
Definition: CastorGain.h:33

Member Function Documentation

◆ getValue()

float CastorGain::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 18 of file CastorGain.h.

References getValues().

18 { return *(getValues() + fCapId); }
const float * getValues() const
get value for all capId = 0..3
Definition: CastorGain.h:16

◆ getValues()

const float* CastorGain::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 16 of file CastorGain.h.

References mValue0.

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

16 { return &mValue0; }
float mValue0
Definition: CastorGain.h:31

◆ rawId()

uint32_t CastorGain::rawId ( ) const
inline

Definition at line 27 of file CastorGain.h.

References mId.

27 { return mId; }
uint32_t mId
Definition: CastorGain.h:30

◆ serialize()

template<class Archive >
void CastorGain::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 36 of file CastorGain.h.

◆ cond::serialization::access

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

Definition at line 36 of file CastorGain.h.

Member Data Documentation

◆ mId

uint32_t CastorGain::mId
private

Definition at line 30 of file CastorGain.h.

Referenced by rawId().

◆ mValue0

float CastorGain::mValue0
private

Definition at line 31 of file CastorGain.h.

Referenced by getValues().

◆ mValue1

float CastorGain::mValue1
private

Definition at line 32 of file CastorGain.h.

◆ mValue2

float CastorGain::mValue2
private

Definition at line 33 of file CastorGain.h.

◆ mValue3

float CastorGain::mValue3
private

Definition at line 34 of file CastorGain.h.