CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalCalibrations Class Reference

#include <HcalCalibrations.h>

Public Member Functions

constexpr double effpedestal (int fCapId) const
 get effective pedestal for capid=0..3 More...
 
constexpr HcalCalibrations ()
 
constexpr HcalCalibrations (const float fGain[4], const float fPedestal[4], const float fEffectivePedestal[4], const float fRespCorr, const float fTimeCorr, const float fLUTCorr)
 
constexpr double LUTrespcorrgain (int fCapId) const
 get LUT corrected and response corrected gain for capid=0..3 More...
 
constexpr double pedestal (int fCapId) const
 get pedestal for capid=0..3 More...
 
constexpr double rawgain (int fCapId) const
 get raw gain for capid=0..3 More...
 
constexpr double respcorr () const
 get response correction factor More...
 
constexpr double respcorrgain (int fCapId) const
 get response corrected gain for capid=0..3 More...
 
constexpr double timecorr () const
 get time correction factor More...
 

Private Attributes

double mEffectivePedestal [4]
 
double mLUTCorr
 
double mPedestal [4]
 
double mRespCorr
 
double mRespCorrGain [4]
 
double mTimeCorr
 

Detailed Description

Container for retrieved calibration constants for HCAL $Author: ratnikov

Definition at line 9 of file HcalCalibrations.h.

Constructor & Destructor Documentation

◆ HcalCalibrations() [1/2]

constexpr HcalCalibrations::HcalCalibrations ( )
inlineconstexpr

Definition at line 11 of file HcalCalibrations.h.

12  : mRespCorrGain{0, 0, 0, 0},
13  mPedestal{0, 0, 0, 0},
14  mEffectivePedestal{0, 0, 0, 0},
15  mRespCorr(0),
16  mTimeCorr(0),
17  mLUTCorr(0) {}

◆ HcalCalibrations() [2/2]

constexpr HcalCalibrations::HcalCalibrations ( const float  fGain[4],
const float  fPedestal[4],
const float  fEffectivePedestal[4],
const float  fRespCorr,
const float  fTimeCorr,
const float  fLUTCorr 
)
inlineconstexpr

Definition at line 18 of file HcalCalibrations.h.

24  : mRespCorrGain{0, 0, 0, 0},
25  mPedestal{0, 0, 0, 0},
26  mEffectivePedestal{0, 0, 0, 0},
27  mRespCorr(0),
28  mTimeCorr(0),
29  mLUTCorr(0) {
30  for (auto iCap = 0; iCap < 4; ++iCap) {
31  mRespCorrGain[iCap] = fGain[iCap] * fRespCorr;
32  mPedestal[iCap] = fPedestal[iCap];
33  mEffectivePedestal[iCap] = fEffectivePedestal[iCap];
34  }
35  mRespCorr = fRespCorr;
36  mTimeCorr = fTimeCorr;
37  mLUTCorr = fLUTCorr;
38  }

Member Function Documentation

◆ effpedestal()

constexpr double HcalCalibrations::effpedestal ( int  fCapId) const
inlineconstexpr

get effective pedestal for capid=0..3

Definition at line 48 of file HcalCalibrations.h.

48 { return mEffectivePedestal[fCapId]; }

References mEffectivePedestal.

◆ LUTrespcorrgain()

constexpr double HcalCalibrations::LUTrespcorrgain ( int  fCapId) const
inlineconstexpr

get LUT corrected and response corrected gain for capid=0..3

Definition at line 40 of file HcalCalibrations.h.

40 { return (mLUTCorr * mRespCorrGain[fCapId]); }

References mLUTCorr, and mRespCorrGain.

◆ pedestal()

constexpr double HcalCalibrations::pedestal ( int  fCapId) const
inlineconstexpr

get pedestal for capid=0..3

Definition at line 46 of file HcalCalibrations.h.

46 { return mPedestal[fCapId]; }

References mPedestal.

Referenced by HcalAmplifier::addPedestals(), ZdcSimpleRecAlgoImpl::reco1(), and HcalSimpleRecAlgoImpl::removePileup().

◆ rawgain()

constexpr double HcalCalibrations::rawgain ( int  fCapId) const
inlineconstexpr

get raw gain for capid=0..3

Definition at line 44 of file HcalCalibrations.h.

44 { return mRespCorrGain[fCapId] / mRespCorr; }

References mRespCorr, and mRespCorrGain.

◆ respcorr()

constexpr double HcalCalibrations::respcorr ( ) const
inlineconstexpr

get response correction factor

Definition at line 50 of file HcalCalibrations.h.

50 { return mRespCorr; }

References mRespCorr.

◆ respcorrgain()

constexpr double HcalCalibrations::respcorrgain ( int  fCapId) const
inlineconstexpr

◆ timecorr()

constexpr double HcalCalibrations::timecorr ( ) const
inlineconstexpr

get time correction factor

Definition at line 52 of file HcalCalibrations.h.

52 { return mTimeCorr; }

References mTimeCorr.

Referenced by HcalSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgo::reconstruct(), and HcalSimpleRecAlgo::reconstructQIE10().

Member Data Documentation

◆ mEffectivePedestal

double HcalCalibrations::mEffectivePedestal[4]
private

Definition at line 57 of file HcalCalibrations.h.

Referenced by effpedestal().

◆ mLUTCorr

double HcalCalibrations::mLUTCorr
private

Definition at line 60 of file HcalCalibrations.h.

Referenced by LUTrespcorrgain().

◆ mPedestal

double HcalCalibrations::mPedestal[4]
private

Definition at line 56 of file HcalCalibrations.h.

Referenced by pedestal().

◆ mRespCorr

double HcalCalibrations::mRespCorr
private

Definition at line 58 of file HcalCalibrations.h.

Referenced by rawgain(), and respcorr().

◆ mRespCorrGain

double HcalCalibrations::mRespCorrGain[4]
private

Definition at line 55 of file HcalCalibrations.h.

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

◆ mTimeCorr

double HcalCalibrations::mTimeCorr
private

Definition at line 59 of file HcalCalibrations.h.

Referenced by timecorr().

HcalCalibrations::mRespCorr
double mRespCorr
Definition: HcalCalibrations.h:58
HcalCalibrations::mRespCorrGain
double mRespCorrGain[4]
Definition: HcalCalibrations.h:55
HcalCalibrations::mPedestal
double mPedestal[4]
Definition: HcalCalibrations.h:56
HcalCalibrations::mTimeCorr
double mTimeCorr
Definition: HcalCalibrations.h:59
HcalCalibrations::mLUTCorr
double mLUTCorr
Definition: HcalCalibrations.h:60
HcalCalibrations::mEffectivePedestal
double mEffectivePedestal[4]
Definition: HcalCalibrations.h:57