]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected treatment of signals with multiple banches
authorprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 5 Dec 2009 00:07:11 +0000 (00:07 +0000)
committerprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 5 Dec 2009 00:07:11 +0000 (00:07 +0000)
PHOS/AliPHOSRawDigiProducer.cxx

index c9aed85630a15c8455b7d10d9ef504a9602984a0..ae906a6bb8eb9a07aa597edbecfeafee0fc28892 100644 (file)
@@ -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() ;