6 : shape_(
shape.begin(),
shape.begin() + nbin), nbin_(nbin) {}
10 shape_ = std::vector<float>(
n, 0.0f);
25 int i = (
int)(
t + 0.5);
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 integrate(double tmin, double tmax) const
std::vector< float > shape_
float operator()(double time) const
float at(double time) const