15 const double bleft,
const double aright,
16 const double bright,
const double join_location,
20 const double x = x_in - join_location;
22 return aleft*x + bleft;
24 return aright*x + bright;
27 const double vleft = -h*aleft + bleft;
28 const double vright = aright*h + bright;
29 const double b = (aright - aleft)/4.0/h;
30 const double d = (vright + vleft - 2*b*h*
h)/2.0;
31 const double a = (d + aright*h - b*h*h - vright)/(2.0*h*h*h);
32 const double c = -(3*d + aright*h + b*h*h - 3*vright)/(2.0*h);
33 return ((a*x + b)*x +
c)*x + d;
52 const unsigned nParams)
const 57 const double logVbias = pars[ipar++];
58 const double logTauMin = pars[ipar++];
62 const double logV0 = pars[ipar++];
65 const double logDelta = pars[ipar++];
68 const double slopeLog = pars[ipar++];
71 const double tauMax = pars[ipar++];
75 const double Vbias =
exp(logVbias);
76 const double shiftedV = v + Vbias;
80 const double lg =
log(shiftedV);
82 const double tauMin =
exp(logTauMin);
84 0.0, tauMin, logV0, delta);
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static double two_joined_lines(const double x_in, const double aleft, const double bleft, const double aright, const double bright, const double join_location, const double h)
unsigned nParameters() const
double operator()(double currentIn, const double *params, unsigned nParams) const