test
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 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 14 of file CastorGain.h.

Constructor & Destructor Documentation

CastorGain::CastorGain ( )
inline

Definition at line 23 of file CastorGain.h.

23 : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
float mValue1
Definition: CastorGain.h:37
float mValue0
Definition: CastorGain.h:36
uint32_t mId
Definition: CastorGain.h:35
float mValue3
Definition: CastorGain.h:39
float mValue2
Definition: CastorGain.h:38
CastorGain::CastorGain ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3 
)
inline

Definition at line 25 of file CastorGain.h.

25  :
26  mId (fId),
27  mValue0 (fCap0),
28  mValue1 (fCap1),
29  mValue2 (fCap2),
30  mValue3 (fCap3) {}
float mValue1
Definition: CastorGain.h:37
float mValue0
Definition: CastorGain.h:36
uint32_t mId
Definition: CastorGain.h:35
float mValue3
Definition: CastorGain.h:39
float mValue2
Definition: CastorGain.h:38

Member Function Documentation

float CastorGain::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 19 of file CastorGain.h.

References getValues().

Referenced by CastorSimParameters::fCtoGeV().

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

get value for all capId = 0..3

Definition at line 17 of file CastorGain.h.

References mValue0.

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

17 {return &mValue0;}
float mValue0
Definition: CastorGain.h:36
uint32_t CastorGain::rawId ( ) const
inline

Definition at line 32 of file CastorGain.h.

References mId.

32 {return mId;}
uint32_t mId
Definition: CastorGain.h:35
template<class Archive >
void CastorGain::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 41 of file CastorGain.h.

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

Definition at line 41 of file CastorGain.h.

Member Data Documentation

uint32_t CastorGain::mId
private

Definition at line 35 of file CastorGain.h.

Referenced by rawId().

float CastorGain::mValue0
private

Definition at line 36 of file CastorGain.h.

Referenced by getValues().

float CastorGain::mValue1
private

Definition at line 37 of file CastorGain.h.

float CastorGain::mValue2
private

Definition at line 38 of file CastorGain.h.

float CastorGain::mValue3
private

Definition at line 39 of file CastorGain.h.