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

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.

13 {};
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.

14  {
15  for (size_t iCap = 0; iCap < 4; ++iCap) {
16  mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
17  mPedestal [iCap] = fPedestal [iCap];
18  }
19  mRespCorr = fRespCorr;
20  mTimeCorr = fTimeCorr;
21  mLUTCorr = fLUTCorr;
22 }
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 16 of file HcalCalibrations.h.

References mLUTCorr, and mRespCorrGain.

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

16 {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 20 of file HcalCalibrations.h.

References mRespCorr, and mRespCorrGain.

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

get response correction factor

Definition at line 24 of file HcalCalibrations.h.

References mRespCorr.

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

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