File indexing completed on 2024-04-06 11:57:35
0001 #include "CalibCalorimetry/CastorCalib/interface/CastorTimeSlew.h"
0002 #include <cmath>
0003
0004
0005 static const double tzero[3] = {23.960177, 13.307784, 9.109694};
0006 static const double slope[3] = {-3.178648, -1.556668, -1.075824};
0007 static const double tmax[3] = {16.00, 10.00, 6.25};
0008
0009 double CastorTimeSlew::delay(double fC, BiasSetting bias) {
0010 double rawDelay = tzero[bias] + slope[bias] * log(fC);
0011 return (rawDelay < 0) ? (0) : ((rawDelay > tmax[bias]) ? (tmax[bias]) : (rawDelay));
0012 }