CMS 3D CMS Logo

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

#include <HcalGain.h>

Public Member Functions

float getValue (int fCapId) const
 get value for capId = 0..3 More...
 
const float * getValues () const
 get value for all capId = 0..3 More...
 
 HcalGain ()
 
 HcalGain (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
 
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
Fedor Ratnikov (UMd) POOL object to store Gain values 4xCapId $Author: ratnikov
Date
2007/12/10 18:36:56
Revision
1.5

Definition at line 17 of file HcalGain.h.

Constructor & Destructor Documentation

HcalGain::HcalGain ( )
inline

Definition at line 26 of file HcalGain.h.

26 : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
float mValue0
Definition: HcalGain.h:39
float mValue3
Definition: HcalGain.h:42
float mValue1
Definition: HcalGain.h:40
uint32_t mId
Definition: HcalGain.h:38
float mValue2
Definition: HcalGain.h:41
HcalGain::HcalGain ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3 
)
inline

Definition at line 28 of file HcalGain.h.

28  :
29  mId (fId),
30  mValue0 (fCap0),
31  mValue1 (fCap1),
32  mValue2 (fCap2),
33  mValue3 (fCap3) {}
float mValue0
Definition: HcalGain.h:39
float mValue3
Definition: HcalGain.h:42
float mValue1
Definition: HcalGain.h:40
uint32_t mId
Definition: HcalGain.h:38
float mValue2
Definition: HcalGain.h:41

Member Function Documentation

float HcalGain::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 22 of file HcalGain.h.

References getValues().

Referenced by XMLDocument::addData(), scaleGains::analyze(), corrGains::analyze(), HcalGainsCheck::analyze(), HFSimParameters::fCtoGeV(), HcalSimParameters::fCtoGeV(), HPDIonFeedbackSim::fCtoGeV(), HcalDigiTester::reco(), and HcalDigisValidation::reco().

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

get value for all capId = 0..3

Definition at line 20 of file HcalGain.h.

References mValue0.

Referenced by HcalDbXml::dumpObject(), getValue(), and HcalDbService::makeHcalCalibration().

20 {return &mValue0;}
float mValue0
Definition: HcalGain.h:39
uint32_t HcalGain::rawId ( ) const
inline

Definition at line 35 of file HcalGain.h.

References mId.

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 44 of file HcalGain.h.

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

Definition at line 44 of file HcalGain.h.

Member Data Documentation

uint32_t HcalGain::mId
private

Definition at line 38 of file HcalGain.h.

Referenced by rawId().

float HcalGain::mValue0
private

Definition at line 39 of file HcalGain.h.

Referenced by getValues().

float HcalGain::mValue1
private

Definition at line 40 of file HcalGain.h.

float HcalGain::mValue2
private

Definition at line 41 of file HcalGain.h.

float HcalGain::mValue3
private

Definition at line 42 of file HcalGain.h.