CMS 3D CMS Logo

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

#include <HcalPedestalWidth.h>

Public Member Functions

float getSigma (int fCapId1, int fCapId2) const
 get correlation element for capId1/2 = 0..3 More...
 
const float * getValues () const
 get value for all capId = 0..3, 10 values in total More...
 
float getWidth (int fCapId) const
 get width (sqrt(sigma_i_i)) for capId = 0..3 More...
 
 HcalPedestalWidth (int fId=0)
 
uint32_t rawId () const
 
void setSigma (int fCapId1, int fCapId2, float fSigma)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

uint32_t mId
 
float mSigma00
 
float mSigma01
 
float mSigma02
 
float mSigma03
 
float mSigma10
 
float mSigma11
 
float mSigma12
 
float mSigma13
 
float mSigma20
 
float mSigma21
 
float mSigma22
 
float mSigma23
 
float mSigma30
 
float mSigma31
 
float mSigma32
 
float mSigma33
 

Friends

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

Detailed Description

Author
Fedor Ratnikov (UMd) POOL object to store PedestalWidth values 4xCapId $Author: ratnikov
Date
2008/11/07 16:05:50
Revision
1.9
Author
Fedor Ratnikov (UMd) correlation matrix for pedestals $Author: ratnikov
Date
2008/11/07 16:06:24
Revision
1.8

Definition at line 15 of file HcalPedestalWidth.h.

Constructor & Destructor Documentation

◆ HcalPedestalWidth()

HcalPedestalWidth::HcalPedestalWidth ( int  fId = 0)

Definition at line 26 of file HcalPedestalWidth.cc.

26  : mId(fId) {
27  for (int i = 16; --i >= 0; *(&mSigma00 + i) = 0) {
28  }
29 }

References mps_fire::i, and mSigma00.

Member Function Documentation

◆ getSigma()

float HcalPedestalWidth::getSigma ( int  fCapId1,
int  fCapId2 
) const

◆ getValues()

const float* HcalPedestalWidth::getValues ( ) const
inline

get value for all capId = 0..3, 10 values in total

Definition at line 18 of file HcalPedestalWidth.h.

18 { return &mSigma00; }

References mSigma00.

Referenced by getSigma(), and getWidth().

◆ getWidth()

float HcalPedestalWidth::getWidth ( int  fCapId) const

get width (sqrt(sigma_i_i)) for capId = 0..3

Definition at line 31 of file HcalPedestalWidth.cc.

31 { return sqrt(*(getValues() + offset(fCapId, fCapId))); }

References getValues(), hltrates_dqm_sourceclient-live_cfg::offset, and mathSSE::sqrt().

Referenced by HcalDbService::convertPedestalWidths(), and HcalDigisValidation::reco().

◆ rawId()

uint32_t HcalPedestalWidth::rawId ( ) const
inline

Definition at line 30 of file HcalPedestalWidth.h.

30 { return mId; }

References mId.

◆ serialize()

template<class Archive >
void HcalPedestalWidth::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setSigma()

void HcalPedestalWidth::setSigma ( int  fCapId1,
int  fCapId2,
float  fSigma 
)

Definition at line 35 of file HcalPedestalWidth.cc.

35  {
36  *(&mSigma00 + offset(fCapId1, fCapId2)) = fSigma;
37 }

References mSigma00, and hltrates_dqm_sourceclient-live_cfg::offset.

Referenced by HcalPedestalAnalysis::GetPedConst(), and HcalPedestalAnalysis::HcalPedVal().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 51 of file HcalPedestalWidth.h.

◆ cond::serialization::access

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

Definition at line 51 of file HcalPedestalWidth.h.

Member Data Documentation

◆ mId

uint32_t HcalPedestalWidth::mId
private

Definition at line 33 of file HcalPedestalWidth.h.

Referenced by rawId().

◆ mSigma00

float HcalPedestalWidth::mSigma00
private

Definition at line 34 of file HcalPedestalWidth.h.

Referenced by getValues(), HcalPedestalWidth(), and setSigma().

◆ mSigma01

float HcalPedestalWidth::mSigma01
private

Definition at line 35 of file HcalPedestalWidth.h.

◆ mSigma02

float HcalPedestalWidth::mSigma02
private

Definition at line 36 of file HcalPedestalWidth.h.

◆ mSigma03

float HcalPedestalWidth::mSigma03
private

Definition at line 37 of file HcalPedestalWidth.h.

◆ mSigma10

float HcalPedestalWidth::mSigma10
private

Definition at line 38 of file HcalPedestalWidth.h.

◆ mSigma11

float HcalPedestalWidth::mSigma11
private

Definition at line 39 of file HcalPedestalWidth.h.

◆ mSigma12

float HcalPedestalWidth::mSigma12
private

Definition at line 40 of file HcalPedestalWidth.h.

◆ mSigma13

float HcalPedestalWidth::mSigma13
private

Definition at line 41 of file HcalPedestalWidth.h.

◆ mSigma20

float HcalPedestalWidth::mSigma20
private

Definition at line 42 of file HcalPedestalWidth.h.

◆ mSigma21

float HcalPedestalWidth::mSigma21
private

Definition at line 43 of file HcalPedestalWidth.h.

◆ mSigma22

float HcalPedestalWidth::mSigma22
private

Definition at line 44 of file HcalPedestalWidth.h.

◆ mSigma23

float HcalPedestalWidth::mSigma23
private

Definition at line 45 of file HcalPedestalWidth.h.

◆ mSigma30

float HcalPedestalWidth::mSigma30
private

Definition at line 46 of file HcalPedestalWidth.h.

◆ mSigma31

float HcalPedestalWidth::mSigma31
private

Definition at line 47 of file HcalPedestalWidth.h.

◆ mSigma32

float HcalPedestalWidth::mSigma32
private

Definition at line 48 of file HcalPedestalWidth.h.

◆ mSigma33

float HcalPedestalWidth::mSigma33
private

Definition at line 49 of file HcalPedestalWidth.h.

mps_fire.i
i
Definition: mps_fire.py:355
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
HcalPedestalWidth::getValues
const float * getValues() const
get value for all capId = 0..3, 10 values in total
Definition: HcalPedestalWidth.h:18
HcalPedestalWidth::mId
uint32_t mId
Definition: HcalPedestalWidth.h:33
HcalPedestalWidth::mSigma00
float mSigma00
Definition: HcalPedestalWidth.h:34
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82