CMS 3D CMS Logo

CastorTimeSlew.cc
Go to the documentation of this file.
2 #include <cmath>
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 }
CastorTimeSlew::delay
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...
Definition: CastorTimeSlew.cc:9
tmax
static const double tmax[3]
Definition: CastorTimeSlew.cc:7
tzero
static const double tzero[3]
Definition: CastorTimeSlew.cc:5
CastorTimeSlew.h
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
slope
static const double slope[3]
Definition: CastorTimeSlew.cc:6
CastorTimeSlew::BiasSetting
BiasSetting
Definition: CastorTimeSlew.h:19