12 double risingTime = -999.;
13 double fallingTime = -999.;
16 int direction(-1), stepSize(1);
21 while ((i > 2) && (i < 8) && (i < n) &&
22 ((risingTime < -998.) || (fallingTime < 998.)))
24 unsigned tdc = digi.
tdc(i);
33 unsigned rising = tdc%100;
34 unsigned falling = tdc/100;
37 if(risingTime < -998. && rising != 62 && rising != 63) {
38 risingTime = rising*25./nbins + (i-signalBX)*25.;
40 if(((fallingTime < -998.) || (fallingTime < risingTime)) &&
41 (falling != 62) && (falling != 63)) {
42 fallingTime = falling*25./nbins + (i-signalBX)*25.;
45 i += direction*stepSize;
uint16_t tdc(int iSample=0) const
void reconstruct(const HcalUpgradeDataFrame &digi, HBHERecHit &recHit) const