16 shape_=std::vector<float>(
n,0.0f);
37 static const float int_delta_ns = 0.05f;
40 for (
double t = t1;
t < t2;
t+= int_delta_ns) {
42 float hiedge =
at(
t+int_delta_ns);
43 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