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 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 16 of file HcalPedestalWidth.h.

Constructor & Destructor Documentation

HcalPedestalWidth::HcalPedestalWidth ( int  fId = 0)

Definition at line 26 of file HcalPedestalWidth.cc.

References i, and mSigma00.

26  : mId (fId) {
27  for (int i = 16; --i >= 0; *(&mSigma00 + i) = 0) {}
28 }
int i
Definition: DBlmapReader.cc:9

Member Function Documentation

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

get correlation element for capId1/2 = 0..3

Definition at line 34 of file HcalPedestalWidth.cc.

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

Referenced by XMLDocument::addData(), HcalPedestalAnalysis::HcalPedVal(), XMLDocument::makeData(), and HcalMonitorClient::PlotPedestalValues().

34  {
35  return *(getValues () + offset (fCapId1, fCapId2));
36 }
const float * getValues() const
get value for all capId = 0..3, 10 values in total
const float* HcalPedestalWidth::getValues ( ) const
inline

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

Definition at line 19 of file HcalPedestalWidth.h.

References mSigma00.

Referenced by HcalPedestalWidthsCheck::analyze(), getSigma(), and getWidth().

19 {return &mSigma00;}
float HcalPedestalWidth::getWidth ( int  fCapId) const

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

Definition at line 30 of file HcalPedestalWidth.cc.

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

Referenced by HcalDbService::makeHcalCalibrationWidth(), HcalDigiTester::reco(), and HcalDigisValidation::reco().

30  {
31  return sqrt (*(getValues () + offset (fCapId, fCapId)));
32 }
const float * getValues() const
get value for all capId = 0..3, 10 values in total
T sqrt(T t)
Definition: SSEVec.h:48
uint32_t HcalPedestalWidth::rawId ( ) const
inline

Definition at line 31 of file HcalPedestalWidth.h.

References mId.

31 {return mId;}
template<class Archive >
void HcalPedestalWidth::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalPedestalWidth::setSigma ( int  fCapId1,
int  fCapId2,
float  fSigma 
)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 52 of file HcalPedestalWidth.h.

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

Definition at line 52 of file HcalPedestalWidth.h.

Member Data Documentation

uint32_t HcalPedestalWidth::mId
private

Definition at line 34 of file HcalPedestalWidth.h.

Referenced by rawId().

float HcalPedestalWidth::mSigma00
private

Definition at line 35 of file HcalPedestalWidth.h.

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

float HcalPedestalWidth::mSigma01
private

Definition at line 36 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma02
private

Definition at line 37 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma03
private

Definition at line 38 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma10
private

Definition at line 39 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma11
private

Definition at line 40 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma12
private

Definition at line 41 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma13
private

Definition at line 42 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma20
private

Definition at line 43 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma21
private

Definition at line 44 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma22
private

Definition at line 45 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma23
private

Definition at line 46 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma30
private

Definition at line 47 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma31
private

Definition at line 48 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma32
private

Definition at line 49 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma33
private

Definition at line 50 of file HcalPedestalWidth.h.