CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

constexpr HcalCalibrations::HcalCalibrations ( )
inline

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) {}
double mEffectivePedestal[4]
double mRespCorrGain[4]
constexpr HcalCalibrations::HcalCalibrations ( const float  fGain[4],
const float  fPedestal[4],
const float  fEffectivePedestal[4],
const float  fRespCorr,
const float  fTimeCorr,
const float  fLUTCorr 
)
inline

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  }
double mEffectivePedestal[4]
double mRespCorrGain[4]

Member Function Documentation

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

get effective pedestal for capid=0..3

Definition at line 48 of file HcalCalibrations.h.

References mEffectivePedestal.

Referenced by WriteL1TriggerObjectsTxt::analyze(), HcalChannelPropertiesEP::produce2(), and HcaluLUTTPGCoder::update().

48 { return mEffectivePedestal[fCapId]; }
double mEffectivePedestal[4]
constexpr double HcalCalibrations::LUTrespcorrgain ( int  fCapId) const
inline

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

Definition at line 40 of file HcalCalibrations.h.

References mLUTCorr, and mRespCorrGain.

Referenced by WriteL1TriggerObjectsTxt::analyze(), and HcaluLUTTPGCoder::update().

40 { return (mLUTCorr * mRespCorrGain[fCapId]); }
double mRespCorrGain[4]
constexpr double HcalCalibrations::pedestal ( int  fCapId) const
inline
constexpr double HcalCalibrations::rawgain ( int  fCapId) const
inline

get raw gain for capid=0..3

Definition at line 44 of file HcalCalibrations.h.

References mRespCorr, and mRespCorrGain.

44 { return mRespCorrGain[fCapId] / mRespCorr; }
double mRespCorrGain[4]
constexpr double HcalCalibrations::respcorr ( ) const
inline

get response correction factor

Definition at line 50 of file HcalCalibrations.h.

References mRespCorr.

50 { return mRespCorr; }
constexpr double HcalCalibrations::respcorrgain ( int  fCapId) const
inline
constexpr double HcalCalibrations::timecorr ( ) const
inline

get time correction factor

Definition at line 52 of file HcalCalibrations.h.

References mTimeCorr.

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

52 { return mTimeCorr; }

Member Data Documentation

double HcalCalibrations::mEffectivePedestal[4]
private

Definition at line 57 of file HcalCalibrations.h.

Referenced by effpedestal().

double HcalCalibrations::mLUTCorr
private

Definition at line 60 of file HcalCalibrations.h.

Referenced by LUTrespcorrgain().

double HcalCalibrations::mPedestal[4]
private

Definition at line 56 of file HcalCalibrations.h.

Referenced by pedestal().

double HcalCalibrations::mRespCorr
private

Definition at line 58 of file HcalCalibrations.h.

Referenced by rawgain(), and respcorr().

double HcalCalibrations::mRespCorrGain[4]
private

Definition at line 55 of file HcalCalibrations.h.

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

double HcalCalibrations::mTimeCorr
private

Definition at line 59 of file HcalCalibrations.h.

Referenced by timecorr().