CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibCalorimetry/CastorCalib/src/CastorTimeSlew.cc

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