13 : fixedphasens_(fixedphase_ns),
15 hcalTimeSlew_delay_(hcalTimeSlew_delay)
31 const int binsize_ns = 25;
41 for (
int shift_ns=0; shift_ns<binsize_ns; shift_ns++) {
46 double tmin = -(double)shift_ns;
47 double bin0val = (double)
integrator_(tmin, tmin+binsize_ns);
48 double bin1val = (double)
integrator_(tmin+binsize_ns, tmin+2*binsize_ns);
52 sprintf (s,
"%7.3f %8.5f %8.5f\n", tmin, bin0val, bin1val);
56 if (bin1val > bin0val) {
67 std::pair<double,double>
74 double tmin = -shift_ns;
81 double recofc = (double)truefc * integral;
85 sprintf (s,
"%8.2f %8.4f %8.4f %8.5f %8.5f %8.5f ",
86 truefc, tmin, tmax, integral, corfactor, recofc);
90 std::pair<double,double> thepair(recofc,corfactor);
double delay(double fC, BiasSetting bias=Medium) const
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...
std::pair< double, double > calcpair(double)
HcalShapeIntegrator integrator_
const HcalTimeSlew * hcalTimeSlew_delay_
void init(int num_samples)
double integrationwindowns_
HcalPulseContainmentAlgo(const HcalPulseShape *shape, int num_samples, double fixedphase_ns, const HcalTimeSlew *hcalTimeSlew_delay)
Integral< F, X >::type integral(const F &f)
static const double tmax[3]