CMS 3D CMS Logo

HcalCalibrations Class Reference

Container for retrieved calibration constants for HCAL $Author: ratnikov
Date
2008/03/07 10:17:09
Revision
1.7
. More...

#include <CalibFormats/HcalObjects/interface/HcalCalibrations.h>

List of all members.

Public Member Functions

 HcalCalibrations (const float fGain[4], const float fPedestal[4], const float fRespCorr)
 HcalCalibrations ()
double pedestal (int fCapId) const
 get pedestal for capid=0..3
double rawgain (int fCapId) const
 get raw gain for capid=0..3
double respcorr () const
 get response correction factor
double respcorrgain (int fCapId) const
 get response corrected gain for capid=0..3

Private Attributes

double mPedestal [4]
double mRespCorr
double mRespCorrGain [4]


Detailed Description

Container for retrieved calibration constants for HCAL $Author: ratnikov
Date
2008/03/07 10:17:09
Revision
1.7
.

Container for retrieved calibration constants for HCAL $Author: ratnikov

Date
2008/03/07 10:17:18
Revision
1.4
.

Definition at line 11 of file HcalCalibrations.h.


Constructor & Destructor Documentation

HcalCalibrations::HcalCalibrations (  )  [inline]

Definition at line 13 of file HcalCalibrations.h.

00013 {};

HcalCalibrations::HcalCalibrations ( const float  fGain[4],
const float  fPedestal[4],
const float  fRespCorr 
)

Definition at line 11 of file HcalCalibrations.cc.

References mPedestal, mRespCorr, and mRespCorrGain.

00012                                                            {
00013   int iCap = 4;
00014   while (--iCap >= 0) {
00015     mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
00016     mPedestal [iCap] = fPedestal [iCap];
00017   }
00018   mRespCorr = fRespCorr;
00019 }


Member Function Documentation

double HcalCalibrations::pedestal ( int  fCapId  )  const [inline]

get pedestal for capid=0..3

Definition at line 20 of file HcalCalibrations.h.

References mPedestal.

Referenced by HcalDeadCellMonitor::createMaps(), HcalHotCellMonitor::createMaps(), HcalMTCCMonitor::dumpDigi(), HcalPedestalMonitor::fillDBValues(), GlobalDigisAnalyzer::fillHCal(), GlobalDigisProducer::fillHCal(), HcalLEDMonitor::processEvent(), HcalPedestalMonitor::processEvent(), HcalMTCCMonitor::processEvent(), HcalDeadCellMonitor::processEvent_digi(), HcalHotCellMonitor::processEvent_pedestal(), AlCaHOCalibProducer::produce(), HcalDigiTester::reco(), HcalSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgo::reconstruct(), and HcaluLUTTPGCoder::update().

00020 {return mPedestal [fCapId];}

double HcalCalibrations::rawgain ( int  fCapId  )  const [inline]

get raw gain for capid=0..3

Definition at line 18 of file HcalCalibrations.h.

References mRespCorr, and mRespCorrGain.

00018 {return mRespCorrGain [fCapId] / mRespCorr;}

double HcalCalibrations::respcorr (  )  const [inline]

get response correction factor

Definition at line 22 of file HcalCalibrations.h.

References mRespCorr.

00022 {return mRespCorr;}

double HcalCalibrations::respcorrgain ( int  fCapId  )  const [inline]

get response corrected gain for capid=0..3

Definition at line 16 of file HcalCalibrations.h.

References mRespCorrGain.

Referenced by HcalMTCCMonitor::processEvent(), HcalSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgo::reconstruct(), and HcaluLUTTPGCoder::update().

00016 {return mRespCorrGain [fCapId];}


Member Data Documentation

double HcalCalibrations::mPedestal[4] [private]

Definition at line 25 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and pedestal().

double HcalCalibrations::mRespCorr [private]

Definition at line 26 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), rawgain(), and respcorr().

double HcalCalibrations::mRespCorrGain[4] [private]

Definition at line 24 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), rawgain(), and respcorrgain().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:30 2009 for CMSSW by  doxygen 1.5.4