#include <CalibFormats/HcalObjects/interface/HcalCalibrations.h>
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] |
Container for retrieved calibration constants for HCAL $Author: ratnikov
Definition at line 11 of file HcalCalibrations.h.
HcalCalibrations::HcalCalibrations | ( | ) | [inline] |
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 }
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];}
double HcalCalibrations::mPedestal[4] [private] |
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().