36 double ampl=0;
int maxI = -1;
double maxA = -1e10;
double ta=0;
38 for (
int i=ifirst;
i<tool.
size() &&
i<
n+ifirst;
i++) {
39 int capid=digi[
i].capid();
52 if(maxI==0 || maxI==(tool.
size()-1)) {
53 LogDebug(
"HCAL Pulse") <<
"ZdcSimpleRecAlgo::reconstruct :"
54 <<
" Invalid max amplitude position, "
55 <<
" max Amplitude: "<< maxI
57 <<
" last: "<<(tool.
size()-1)
61 int capid=digi[maxI-1].capid();
63 capid=digi[maxI+1].capid();
65 double wpksamp = (t0 + maxA + t2);
66 if (wpksamp!=0) wpksamp=(maxA + 2.0*t2) / wpksamp;
78 return RecHit(digi.id(),ampl,
time);
double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
double getCorrection(double fc_ampl) const
double pedestal(int fCapId) const
get pedestal for capid=0..3
static float timeshift_ns_zdc(float wpksamp)
const T & max(const T &a, const T &b)
int size() const
get the size
double timecorr() const
get time correction factor
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
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...