CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibFormats/HcalObjects/src/HcalCalibrations.cc

Go to the documentation of this file.
00001 #include "CalibFormats/HcalObjects/interface/HcalCalibrations.h"
00002 #include <cstdlib>
00003 
00012 HcalCalibrations::HcalCalibrations (const float fGain [4], const float fPedestal [4], 
00013                                     const float fRespCorr, const float fTimeCorr, 
00014                                     const float fLUTCorr ) {
00015   for (size_t iCap = 0; iCap < 4; ++iCap) {
00016     mRespCorrGain [iCap] = fGain [iCap] * fRespCorr;
00017     mPedestal [iCap] = fPedestal [iCap];
00018   }
00019   mRespCorr = fRespCorr;
00020   mTimeCorr = fTimeCorr;
00021   mLUTCorr = fLUTCorr;
00022 }