CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalCalibrations Class Reference

#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 More...
 
double pedestal (int fCapId) const
 get pedestal for capid=0..3 More...
 
double rawgain (int fCapId) const
 get raw gain for capid=0..3 More...
 
double respcorr () const
 get response correction factor More...
 
double respcorrgain (int fCapId) const
 get response corrected gain for capid=0..3 More...
 
double timecorr () const
 get time correction factor More...
 

Private Attributes

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::HcalCalibrations ( )
inline

Definition at line 11 of file HcalCalibrations.h.

11 {};
HcalCalibrations::HcalCalibrations ( const float  fGain[4],
const float  fPedestal[4],
const float  fRespCorr,
const float  fTimeCorr,
const float  fLUTCorr 
)

Definition at line 10 of file HcalCalibrations.cc.

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

12  {
13  for (size_t iCap = 0; iCap < 4; ++iCap) {
14  mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
15  mPedestal [iCap] = fPedestal [iCap];
16  }
17  mRespCorr = fRespCorr;
18  mTimeCorr = fTimeCorr;
19  mLUTCorr = fLUTCorr;
20 }
double mRespCorrGain[4]

Member Function Documentation

double HcalCalibrations::LUTrespcorrgain ( int  fCapId) const
inline

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

Definition at line 14 of file HcalCalibrations.h.

References mLUTCorr, and mRespCorrGain.

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

14 {return (mLUTCorr * mRespCorrGain [fCapId]);}
double mRespCorrGain[4]
double HcalCalibrations::pedestal ( int  fCapId) const
inline
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.

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

get response correction factor

Definition at line 22 of file HcalCalibrations.h.

References mRespCorr.

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

get time correction factor

Definition at line 24 of file HcalCalibrations.h.

References mTimeCorr.

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

24 {return mTimeCorr;}

Member Data Documentation

double HcalCalibrations::mLUTCorr
private

Definition at line 30 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and LUTrespcorrgain().

double HcalCalibrations::mPedestal[4]
private

Definition at line 27 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and pedestal().

double HcalCalibrations::mRespCorr
private

Definition at line 28 of file HcalCalibrations.h.

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

double HcalCalibrations::mRespCorrGain[4]
private

Definition at line 26 of file HcalCalibrations.h.

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

double HcalCalibrations::mTimeCorr
private

Definition at line 29 of file HcalCalibrations.h.

Referenced by HcalCalibrations(), and timecorr().