10 shape_ = std::vector<float>(
n, 0.0f);
14 if (i >= 0 && i <
nbin_)
25 int i = (
int)(t + 0.5);
27 if (i >= 0 && i <
nbin_)
33 static const float int_delta_ns = 0.05f;
36 for (
double t = t1;
t <
t2;
t += int_delta_ns) {
38 float hiedge =
at(
t + int_delta_ns);
39 intval += (loedge + hiedge) * int_delta_ns / 2.0;
void setShapeBin(int i, float f)
float at(double time) const
float integrate(double tmin, double tmax) const
std::vector< float > shape_
float operator()(double time) const