13 : fixedphasens_(fixedphase_ns),
21 : fixedphasens_(fixedphase_ns),
30 const int binsize_ns = 25;
40 for (
int shift_ns=0; shift_ns<binsize_ns; shift_ns++) {
45 double tmin = -(double)shift_ns;
46 double bin0val = (double)
integrator_(tmin, tmin+binsize_ns);
47 double bin1val = (double)
integrator_(tmin+binsize_ns, tmin+2*binsize_ns);
51 sprintf (s,
"%7.3f %8.5f %8.5f\n", tmin, bin0val, bin1val);
55 if (bin1val > bin0val) {
66 std::pair<double,double>
73 double tmin = -shift_ns;
80 double recofc = (double)truefc * integral;
84 sprintf (s,
"%8.2f %8.4f %8.4f %8.5f %8.5f %8.5f ",
85 truefc, tmin, tmax, integral, corfactor, recofc);
89 std::pair<double,double> thepair(recofc,corfactor);
std::pair< double, double > calcpair(double)
HcalShapeIntegrator integrator_
HcalPulseContainmentAlgo(const HcalPulseShape *shape, int num_samples, double fixedphase_ns)
void init(int num_samples)
double integrationwindowns_
Integral< F, X >::type integral(const F &f)
static const double tmax[3]
static double delay(double fC, BiasSetting bias=Medium)
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...