CMS 3D CMS Logo

HcalCalibrations.h
Go to the documentation of this file.
1 #ifndef HCAL_CALIBRATIONS_H
2 #define HCAL_CALIBRATIONS_H
3 
10  public:
12  HcalCalibrations (const float fGain [4], const float fPedestal [4], const float fRespCorr, const float fTimeCorr, const float fLUTCorr);
14  double LUTrespcorrgain (int fCapId) const {return (mLUTCorr * mRespCorrGain [fCapId]);}
16  double respcorrgain (int fCapId) const {return mRespCorrGain [fCapId];}
18  double rawgain (int fCapId) const {return mRespCorrGain [fCapId] / mRespCorr;}
20  double pedestal (int fCapId) const {return mPedestal [fCapId];}
22  double respcorr () const {return mRespCorr;}
24  double timecorr () const {return mTimeCorr;}
25  private:
26  double mRespCorrGain [4];
27  double mPedestal [4];
28  double mRespCorr;
29  double mTimeCorr;
30  double mLUTCorr;
31 };
32 
33 #endif
double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
double pedestal(int fCapId) const
get pedestal for capid=0..3
double respcorr() const
get response correction factor
double LUTrespcorrgain(int fCapId) const
get LUT corrected and response corrected gain for capid=0..3
double timecorr() const
get time correction factor
double rawgain(int fCapId) const
get raw gain for capid=0..3
double mRespCorrGain[4]