#include <HcalCalibrations.h>
Public Member Functions | |
HcalCalibrations () | |
HcalCalibrations (const float fGain[4], const float fPedestal[4], const float fRespCorr, const float fTimeCorr, const float fLUTCorr) | |
double | LUTrespcorrgain (int fCapId) const |
get LUT corrected and response corrected gain for capid=0..3 | |
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 | |
double | timecorr () const |
get time correction factor | |
Private Attributes | |
double | mLUTCorr |
double | mPedestal [4] |
double | mRespCorr |
double | mRespCorrGain [4] |
double | mTimeCorr |
Container for retrieved calibration constants for HCAL $Author: ratnikov
Container for retrieved calibration constants for HCAL $Author: ratnikov
Definition at line 11 of file HcalCalibrations.h.
HcalCalibrations::HcalCalibrations | ( | ) | [inline] |
Definition at line 13 of file HcalCalibrations.h.
{};
HcalCalibrations::HcalCalibrations | ( | const float | fGain[4], |
const float | fPedestal[4], | ||
const float | fRespCorr, | ||
const float | fTimeCorr, | ||
const float | fLUTCorr | ||
) |
Definition at line 11 of file HcalCalibrations.cc.
References mLUTCorr, mPedestal, mRespCorr, mRespCorrGain, and mTimeCorr.
{ int iCap = 4; while (--iCap >= 0) { mRespCorrGain [iCap] = fGain [iCap] * fRespCorr; mPedestal [iCap] = fPedestal [iCap]; } mRespCorr = fRespCorr; mTimeCorr = fTimeCorr; mLUTCorr = fLUTCorr; }
double HcalCalibrations::LUTrespcorrgain | ( | int | fCapId | ) | const [inline] |
get LUT corrected and response corrected gain for capid=0..3
Definition at line 16 of file HcalCalibrations.h.
References mLUTCorr, and mRespCorrGain.
Referenced by WriteL1TriggerObjetsXml::analyze(), and HcaluLUTTPGCoder::update().
{return (mLUTCorr * mRespCorrGain [fCapId]);}
double HcalCalibrations::pedestal | ( | int | fCapId | ) | const [inline] |
get pedestal for capid=0..3
Definition at line 22 of file HcalCalibrations.h.
References mPedestal.
Referenced by HcalAmplifier::addPedestals(), WriteL1TriggerObjetsXml::analyze(), HcalNoiseMonitor::analyze(), HcalDigiMonitor::beginRun(), reco::HcalNoiseInfoProducer::filldigis(), GlobalDigisAnalyzer::fillHCal(), GlobalDigisProducer::fillHCal(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalMonitorClient::PlotPedestalValues(), AlCaHOCalibProducer::produce(), HcalDigiTester::reco(), HcalSimpleRecAlgoImpl::reco(), ZdcSimpleRecAlgoImpl::reco1(), HcalSimpleRecAlgo::reconstruct(), HBHEStatusBitSetter::SetFlagsFromDigi(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), and HcaluLUTTPGCoder::update().
{return mPedestal [fCapId];}
double HcalCalibrations::rawgain | ( | int | fCapId | ) | const [inline] |
get raw gain for capid=0..3
Definition at line 20 of file HcalCalibrations.h.
References mRespCorr, and mRespCorrGain.
{return mRespCorrGain [fCapId] / mRespCorr;}
double HcalCalibrations::respcorr | ( | ) | const [inline] |
get response correction factor
Definition at line 24 of file HcalCalibrations.h.
References mRespCorr.
{return mRespCorr;}
double HcalCalibrations::respcorrgain | ( | int | fCapId | ) | const [inline] |
get response corrected gain for capid=0..3
Definition at line 18 of file HcalCalibrations.h.
References mRespCorrGain.
Referenced by HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalSimpleRecAlgoImpl::reco(), ZdcSimpleRecAlgoImpl::reco1(), ZdcSimpleRecAlgoImpl::reco2(), and HcalSimpleRecAlgo::reconstruct().
{return mRespCorrGain [fCapId];}
double HcalCalibrations::timecorr | ( | ) | const [inline] |
get time correction factor
Definition at line 26 of file HcalCalibrations.h.
References mTimeCorr.
Referenced by HcalSimpleRecAlgoImpl::reco(), ZdcSimpleRecAlgoImpl::reco1(), and HcalSimpleRecAlgo::reconstruct().
{return mTimeCorr;}
double HcalCalibrations::mLUTCorr [private] |
Definition at line 32 of file HcalCalibrations.h.
Referenced by HcalCalibrations(), and LUTrespcorrgain().
double HcalCalibrations::mPedestal[4] [private] |
Definition at line 29 of file HcalCalibrations.h.
Referenced by HcalCalibrations(), and pedestal().
double HcalCalibrations::mRespCorr [private] |
Definition at line 30 of file HcalCalibrations.h.
Referenced by HcalCalibrations(), rawgain(), and respcorr().
double HcalCalibrations::mRespCorrGain[4] [private] |
Definition at line 28 of file HcalCalibrations.h.
Referenced by HcalCalibrations(), LUTrespcorrgain(), rawgain(), and respcorrgain().
double HcalCalibrations::mTimeCorr [private] |
Definition at line 31 of file HcalCalibrations.h.
Referenced by HcalCalibrations(), and timecorr().