From c01c56419c5c7ec27053c4b9a2a9a4f16a2f7cc9 Mon Sep 17 00:00:00 2001 From: prsnko Date: Sat, 5 Dec 2009 00:07:11 +0000 Subject: [PATCH] Corrected treatment of signals with multiple banches --- PHOS/AliPHOSRawDigiProducer.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PHOS/AliPHOSRawDigiProducer.cxx b/PHOS/AliPHOSRawDigiProducer.cxx index c9aed85630a..ae906a6bb8e 100644 --- a/PHOS/AliPHOSRawDigiProducer.cxx +++ b/PHOS/AliPHOSRawDigiProducer.cxx @@ -197,17 +197,14 @@ void AliPHOSRawDigiProducer::MakeDigits(TClonesArray *digits, AliPHOSRawFitterv0 fGeom->RelToAbsNumbering(relId, absId); - Int_t nBunches = 0; - while (fRawStream->NextBunch()) { - nBunches++; - if (nBunches > 1) continue; + fitter->SetNBunches(0); + while (fRawStream->NextBunch()) { //Take first in time banch const UShort_t *sig = fRawStream->GetSignals(); Int_t sigStart = fRawStream->GetStartTimeBin(); Int_t sigLength = fRawStream->GetBunchLength(); fitter->Eval(sig,sigStart,sigLength); } // End of NextBunch() - fitter->SetNBunches(nBunches); Double_t energy = fitter->GetEnergy() ; Double_t time = fitter->GetTime() ; -- 2.39.3