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 fEffectivePedestal[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 effpedestal (int fCapId) const {return mEffectivePedestal [fCapId];}
24  double respcorr () const {return mRespCorr;}
26  double timecorr () const {return mTimeCorr;}
27  private:
28  double mRespCorrGain [4];
29  double mPedestal [4];
30  double mEffectivePedestal [4];
31  double mRespCorr;
32  double mTimeCorr;
33  double mLUTCorr;
34 };
35 
36 #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 effpedestal(int fCapId) const
get effective pedestal for capid=0..3
double mEffectivePedestal[4]
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]