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

constexpr HcalCalibrations::HcalCalibrations ( )
inline

Definition at line 11 of file HcalCalibrations.h.

References mEffectivePedestal, mLUTCorr, mPedestal, mRespCorr, and mTimeCorr.

12  : mRespCorrGain{0,0,0,0}, mPedestal{0,0,0,0}, mEffectivePedestal{0,0,0,0},
13  mRespCorr(0), mTimeCorr(0), mLUTCorr(0)
14  {}
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 15 of file HcalCalibrations.h.

References mEffectivePedestal, mLUTCorr, mPedestal, mRespCorr, mRespCorrGain, and mTimeCorr.

18  : mRespCorrGain{0,0,0,0}, mPedestal{0,0,0,0}, mEffectivePedestal{0,0,0,0},
19  mRespCorr(0), mTimeCorr(0), mLUTCorr(0) {
20  for (auto iCap = 0; iCap < 4; ++iCap) {
21  mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
22  mPedestal [iCap] = fPedestal [iCap];
23  mEffectivePedestal [iCap] = fEffectivePedestal [iCap];
24  }
25  mRespCorr = fRespCorr;
26  mTimeCorr = fTimeCorr;
27  mLUTCorr = fLUTCorr;
28  }
double mEffectivePedestal[4]
double mRespCorrGain[4]

Member Function Documentation

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

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

Definition at line 30 of file HcalCalibrations.h.

References mLUTCorr, and mRespCorrGain.

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

30 {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 34 of file HcalCalibrations.h.

References mRespCorr, and mRespCorrGain.

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

get response correction factor

Definition at line 40 of file HcalCalibrations.h.

References mRespCorr.

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

Member Data Documentation

double HcalCalibrations::mEffectivePedestal[4]
private

Definition at line 46 of file HcalCalibrations.h.

Referenced by effpedestal(), and HcalCalibrations().

double HcalCalibrations::mLUTCorr
private

Definition at line 49 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and LUTrespcorrgain().

double HcalCalibrations::mPedestal[4]
private

Definition at line 45 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and pedestal().

double HcalCalibrations::mRespCorr
private

Definition at line 47 of file HcalCalibrations.h.

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

double HcalCalibrations::mRespCorrGain[4]
private

Definition at line 44 of file HcalCalibrations.h.

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

double HcalCalibrations::mTimeCorr
private

Definition at line 48 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and timecorr().