CMS 3D CMS Logo

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

#include <HcalGainWidth.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...
 
 HcalGainWidth ()
 
 HcalGainWidth (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 GainWidth values 4xCapId $Author: ratnikov
Date
2007/12/10 18:37:06
Revision
1.5

Definition at line 15 of file HcalGainWidth.h.

Constructor & Destructor Documentation

◆ HcalGainWidth() [1/2]

HcalGainWidth::HcalGainWidth ( )
inline

Definition at line 24 of file HcalGainWidth.h.

24 : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0) {}
uint32_t mId
Definition: HcalGainWidth.h:32

◆ HcalGainWidth() [2/2]

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

Definition at line 26 of file HcalGainWidth.h.

27  : mId(fId), mValue0(fCap0), mValue1(fCap1), mValue2(fCap2), mValue3(fCap3) {}
uint32_t mId
Definition: HcalGainWidth.h:32

Member Function Documentation

◆ getValue()

float HcalGainWidth::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 20 of file HcalGainWidth.h.

References getValues().

Referenced by XMLDocument::addData().

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

◆ getValues()

const float* HcalGainWidth::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 18 of file HcalGainWidth.h.

References mValue0.

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

18 { return &mValue0; }

◆ rawId()

uint32_t HcalGainWidth::rawId ( ) const
inline

Definition at line 29 of file HcalGainWidth.h.

References mId.

29 { return mId; }
uint32_t mId
Definition: HcalGainWidth.h:32

◆ serialize()

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

◆ cond::serialization::access

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

Definition at line 38 of file HcalGainWidth.h.

Member Data Documentation

◆ mId

uint32_t HcalGainWidth::mId
private

Definition at line 32 of file HcalGainWidth.h.

Referenced by rawId().

◆ mValue0

float HcalGainWidth::mValue0
private

Definition at line 33 of file HcalGainWidth.h.

Referenced by getValues().

◆ mValue1

float HcalGainWidth::mValue1
private

Definition at line 34 of file HcalGainWidth.h.

◆ mValue2

float HcalGainWidth::mValue2
private

Definition at line 35 of file HcalGainWidth.h.

◆ mValue3

float HcalGainWidth::mValue3
private

Definition at line 36 of file HcalGainWidth.h.