CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalCalibrations Class Reference

#include <HcalCalibrations.h>

List of all members.

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

Detailed Description

Container for retrieved calibration constants for HCAL $Author: ratnikov

Date:
2009/05/19 16:06:05
Revision:
1.9

Container for retrieved calibration constants for HCAL $Author: ratnikov

Date:
2011/10/13 09:44:45
Revision:
1.7

Definition at line 11 of file HcalCalibrations.h.


Constructor & Destructor Documentation

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 12 of file HcalCalibrations.cc.

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

                                                           {
  for (size_t iCap = 0; iCap < 4; ++iCap) {
    mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
    mPedestal [iCap] = fPedestal [iCap];
  }
  mRespCorr = fRespCorr;
  mTimeCorr = fTimeCorr;
  mLUTCorr = fLUTCorr;
}

Member Function Documentation

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]
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]
double HcalCalibrations::timecorr ( ) const [inline]

get time correction factor

Definition at line 26 of file HcalCalibrations.h.

References mTimeCorr.

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

{return mTimeCorr;}

Member Data Documentation

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().