CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorTimeSlew.cc
Go to the documentation of this file.
2 #include <math.h>
3 
4 // NOTE check these numbers
5 static const double tzero[3]= {23.960177, 13.307784, 9.109694};
6 static const double slope[3] = {-3.178648, -1.556668, -1.075824 };
7 static const double tmax[3] = {16.00, 10.00, 6.25 };
8 
9 double CastorTimeSlew::delay(double fC, BiasSetting bias) {
10  double rawDelay=tzero[bias]+slope[bias]*log(fC);
11  return (rawDelay<0)?(0):((rawDelay>tmax[bias])?(tmax[bias]):(rawDelay));
12 }
static double delay(double fC, BiasSetting bias=Medium)
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...
static const double slope[3]
static const double tmax[3]
static const double tzero[3]