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 Attributes
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 Attributes

uint32_t mId
 
float mValue0
 
float mValue1
 
float mValue2
 
float mValue3
 

Detailed Description

Definition at line 12 of file CastorGain.h.

Constructor & Destructor Documentation

CastorGain::CastorGain ( )
inline

Definition at line 21 of file CastorGain.h.

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

Definition at line 23 of file CastorGain.h.

23  :
24  mId (fId),
25  mValue0 (fCap0),
26  mValue1 (fCap1),
27  mValue2 (fCap2),
28  mValue3 (fCap3) {}
float mValue1
Definition: CastorGain.h:35
float mValue0
Definition: CastorGain.h:34
uint32_t mId
Definition: CastorGain.h:33
float mValue3
Definition: CastorGain.h:37
float mValue2
Definition: CastorGain.h:36

Member Function Documentation

float CastorGain::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 17 of file CastorGain.h.

References getValues().

Referenced by CastorSimParameters::fCtoGeV().

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

get value for all capId = 0..3

Definition at line 15 of file CastorGain.h.

References mValue0.

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

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

Definition at line 30 of file CastorGain.h.

References mId.

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

Member Data Documentation

uint32_t CastorGain::mId
private

Definition at line 33 of file CastorGain.h.

Referenced by rawId().

float CastorGain::mValue0
private

Definition at line 34 of file CastorGain.h.

Referenced by getValues().

float CastorGain::mValue1
private

Definition at line 35 of file CastorGain.h.

float CastorGain::mValue2
private

Definition at line 36 of file CastorGain.h.

float CastorGain::mValue3
private

Definition at line 37 of file CastorGain.h.