Definition at line 17 of file HcalTDC.h.
adds timing information to the digi template <class digi>="">
Definition at line 13 of file HcalTDC.cc.
15 bool risingReady(
true);
17 bool hasTDCValues =
true;
21 for (
int ibin = 0; ibin < lf.
size(); ++ibin) {
36 int preciseBegin = ibin * tdcBins;
37 int preciseEnd = preciseBegin + tdcBins;
40 for (
int i = preciseBegin;
i < preciseEnd; ++
i) {
41 if ((!risingReady) && (
i == preciseBegin) && (
i != 0)) {
51 TDC_RisingEdge =
i - preciseBegin;
53 }
else if (
i == (preciseEnd - 1)) {
58 if ((!risingReady) && (
i == (preciseEnd - 1))) {
68 int packedTDC = TDC_RisingEdge;
69 digi.
setSample(ibin, digi[ibin].
adc(), packedTDC, digi[ibin].soi());
References ecalLiteDTU::adc(), HcalTDCParameters::alreadyTransitionCode(), HcalTDCParameters::deltaT(), getThreshold(), mps_fire::i, HcalTDCParameters::nbins(), HcalTDCParameters::noTransitionCode(), CaloSamples::preciseAt(), CaloSamples::preciseSize(), QIE11DataFrame::setSample(), CaloSamples::size(), and theTDCParameters.
Referenced by HcalElectronicsSim::analogToDigital().