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