CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CalibFormats/HcalObjects/interface/HcalCalibrations.h

Go to the documentation of this file.
00001 #ifndef HCAL_CALIBRATIONS_H
00002 #define HCAL_CALIBRATIONS_H
00003 
00011 class HcalCalibrations {
00012  public:
00013   HcalCalibrations () {};
00014   HcalCalibrations (const float fGain [4], const float fPedestal [4], const float fRespCorr, const float fTimeCorr, const float fLUTCorr);
00016   double LUTrespcorrgain (int fCapId) const {return (mLUTCorr *  mRespCorrGain [fCapId]);}
00018   double respcorrgain (int fCapId) const {return mRespCorrGain [fCapId];}
00020   double rawgain (int fCapId) const {return mRespCorrGain [fCapId] / mRespCorr;}
00022   double pedestal (int fCapId) const {return mPedestal [fCapId];}
00024   double respcorr () const {return mRespCorr;}
00026   double timecorr () const {return mTimeCorr;}
00027  private:
00028   double mRespCorrGain [4];
00029   double mPedestal [4];
00030   double mRespCorr;
00031   double mTimeCorr;
00032   double mLUTCorr;
00033 };
00034 
00035 #endif