CMS 3D CMS Logo

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

#include <HcalPedestal.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...
 
float getWidth (int fCapId) const
 get width for capId = 0..3 More...
 
const float * getWidths () const
 get width for all capId = 0..3 More...
 
 HcalPedestal ()
 
 HcalPedestal (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3, float wCap0=0, float wCap1=0, float wCap2=0, float wCap3=0)
 
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
 
float mWidth0
 
float mWidth1
 
float mWidth2
 
float mWidth3
 

Friends

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

Detailed Description

Author
Fedor Ratnikov (UMd) POOL object to store Pedestal values 4xCapId $Author: ratnikov
Date
2007/12/14 13:19:53
Revision
1.7

Definition at line 15 of file HcalPedestal.h.

Constructor & Destructor Documentation

◆ HcalPedestal() [1/2]

HcalPedestal::HcalPedestal ( )
inline

Definition at line 29 of file HcalPedestal.h.

30  : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0), mWidth0(0), mWidth1(0), mWidth2(0), mWidth3(0) {}

◆ HcalPedestal() [2/2]

HcalPedestal::HcalPedestal ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3,
float  wCap0 = 0,
float  wCap1 = 0,
float  wCap2 = 0,
float  wCap3 = 0 
)
inline

Definition at line 32 of file HcalPedestal.h.

41  : mId(fId),
42  mValue0(fCap0),
43  mValue1(fCap1),
44  mValue2(fCap2),
45  mValue3(fCap3),
46  mWidth0(wCap0),
47  mWidth1(wCap1),
48  mWidth2(wCap2),
49  mWidth3(wCap3) {}

Member Function Documentation

◆ getValue()

float HcalPedestal::getValue ( int  fCapId) const
inline

◆ getValues()

const float* HcalPedestal::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 18 of file HcalPedestal.h.

18 { return &mValue0; }

References mValue0.

Referenced by PedestalTask::bookHistograms(), HcalDbXml::dumpObject(), and getValue().

◆ getWidth()

float HcalPedestal::getWidth ( int  fCapId) const
inline

get width for capId = 0..3

Definition at line 25 of file HcalPedestal.h.

25 { return *(getWidths() + fCapId); }

References getWidths().

◆ getWidths()

const float* HcalPedestal::getWidths ( ) const
inline

get width for all capId = 0..3

Definition at line 23 of file HcalPedestal.h.

23 { return &mWidth0; }

References mWidth0.

Referenced by getWidth().

◆ rawId()

uint32_t HcalPedestal::rawId ( ) const
inline

Definition at line 51 of file HcalPedestal.h.

51 { return mId; }

References mId.

◆ serialize()

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

◆ cond::serialization::access

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

Definition at line 64 of file HcalPedestal.h.

Member Data Documentation

◆ mId

uint32_t HcalPedestal::mId
private

Definition at line 54 of file HcalPedestal.h.

Referenced by rawId().

◆ mValue0

float HcalPedestal::mValue0
private

Definition at line 55 of file HcalPedestal.h.

Referenced by getValues().

◆ mValue1

float HcalPedestal::mValue1
private

Definition at line 56 of file HcalPedestal.h.

◆ mValue2

float HcalPedestal::mValue2
private

Definition at line 57 of file HcalPedestal.h.

◆ mValue3

float HcalPedestal::mValue3
private

Definition at line 58 of file HcalPedestal.h.

◆ mWidth0

float HcalPedestal::mWidth0
private

Definition at line 59 of file HcalPedestal.h.

Referenced by getWidths().

◆ mWidth1

float HcalPedestal::mWidth1
private

Definition at line 60 of file HcalPedestal.h.

◆ mWidth2

float HcalPedestal::mWidth2
private

Definition at line 61 of file HcalPedestal.h.

◆ mWidth3

float HcalPedestal::mWidth3
private

Definition at line 62 of file HcalPedestal.h.

HcalPedestal::mWidth2
float mWidth2
Definition: HcalPedestal.h:61
HcalPedestal::getValues
const float * getValues() const
get value for all capId = 0..3
Definition: HcalPedestal.h:18
HcalPedestal::mValue3
float mValue3
Definition: HcalPedestal.h:58
HcalPedestal::mWidth3
float mWidth3
Definition: HcalPedestal.h:62
HcalPedestal::mValue1
float mValue1
Definition: HcalPedestal.h:56
HcalPedestal::mWidth1
float mWidth1
Definition: HcalPedestal.h:60
HcalPedestal::mValue0
float mValue0
Definition: HcalPedestal.h:55
HcalPedestal::mWidth0
float mWidth0
Definition: HcalPedestal.h:59
HcalPedestal::getWidths
const float * getWidths() const
get width for all capId = 0..3
Definition: HcalPedestal.h:23
HcalPedestal::mId
uint32_t mId
Definition: HcalPedestal.h:54
HcalPedestal::mValue2
float mValue2
Definition: HcalPedestal.h:57