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 Attributes
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 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
 

Detailed Description

Author
Fedor Ratnikov (UMd) POOL object to store PedestalWidth values 4xCapId $Author: ratnikov
Date:
2009/03/24 16:05:29
Revision:
1.10
Author
Fedor Ratnikov (UMd) correlation matrix for pedestals $Author: ratnikov
Date:
2009/03/24 16:05:35
Revision:
1.9

Definition at line 14 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 evf::evtn::offset().

Referenced by XMLDocument::addData(), HcalPedestalAnalysis::HcalPedVal(), XMLDocument::makeData(), HcalRecHitsMaker::noiseInfCfromDB(), 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
unsigned int offset(bool)
const float* HcalPedestalWidth::getValues ( ) const
inline

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

Definition at line 17 of file HcalPedestalWidth.h.

References mSigma00.

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

17 {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(), evf::evtn::offset(), and mathSSE::sqrt().

Referenced by HcalDbService::makeHcalCalibrationWidth(), and HcalDigiTester::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:46
unsigned int offset(bool)
uint32_t HcalPedestalWidth::rawId ( ) const
inline

Definition at line 29 of file HcalPedestalWidth.h.

References mId.

29 {return mId;}
void HcalPedestalWidth::setSigma ( int  fCapId1,
int  fCapId2,
float  fSigma 
)

Member Data Documentation

uint32_t HcalPedestalWidth::mId
private

Definition at line 32 of file HcalPedestalWidth.h.

Referenced by rawId().

float HcalPedestalWidth::mSigma00
private

Definition at line 33 of file HcalPedestalWidth.h.

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

float HcalPedestalWidth::mSigma01
private

Definition at line 34 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma02
private

Definition at line 35 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma03
private

Definition at line 36 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma10
private

Definition at line 37 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma11
private

Definition at line 38 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma12
private

Definition at line 39 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma13
private

Definition at line 40 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma20
private

Definition at line 41 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma21
private

Definition at line 42 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma22
private

Definition at line 43 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma23
private

Definition at line 44 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma30
private

Definition at line 45 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma31
private

Definition at line 46 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma32
private

Definition at line 47 of file HcalPedestalWidth.h.

float HcalPedestalWidth::mSigma33
private

Definition at line 48 of file HcalPedestalWidth.h.