CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/CalibCalorimetry/HcalAlgos/src/HcalTimeSlew.cc

Go to the documentation of this file.
00001 #include "CalibCalorimetry/HcalAlgos/interface/HcalTimeSlew.h"
00002 #include <math.h>
00003 
00004 static const double tzero[3]= {23.960177, 13.307784, 9.109694};
00005 static const double slope[3] = {-3.178648,  -1.556668, -1.075824 };
00006 static const double tmax[3] = {16.00, 10.00, 6.25 };
00007 
00008 double HcalTimeSlew::delay(double fC, BiasSetting bias) {
00009   double rawDelay=tzero[bias]+slope[bias]*log(fC);
00010   return (rawDelay<0)?(0):((rawDelay>tmax[bias])?(tmax[bias]):(rawDelay));                         
00011 }