CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalCalibrations.h
Go to the documentation of this file.
1 #ifndef HCAL_CALIBRATIONS_H
2 #define HCAL_CALIBRATIONS_H
3 
12  public:
14  HcalCalibrations (const float fGain [4], const float fPedestal [4], const float fRespCorr, const float fTimeCorr, const float fLUTCorr);
16  double LUTrespcorrgain (int fCapId) const {return (mLUTCorr * mRespCorrGain [fCapId]);}
18  double respcorrgain (int fCapId) const {return mRespCorrGain [fCapId];}
20  double rawgain (int fCapId) const {return mRespCorrGain [fCapId] / mRespCorr;}
22  double pedestal (int fCapId) const {return mPedestal [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 mRespCorr;
31  double mTimeCorr;
32  double mLUTCorr;
33 };
34 
35 #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]