From 96d09dfdb4239247db8d9f1b0326d217fe3f89d9 Mon Sep 17 00:00:00 2001 From: gconesab Date: Tue, 25 Nov 2014 10:39:26 +0100 Subject: [PATCH] Place the rejection of dead channels in the proper location, currently it can produce many channels rejection if a dead channel is declared because the index to check the next SDigit is not updated --- EMCAL/AliEMCALDigitizer.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/EMCAL/AliEMCALDigitizer.cxx b/EMCAL/AliEMCALDigitizer.cxx index 9fc6368d5cb..a7cd895069a 100644 --- a/EMCAL/AliEMCALDigitizer.cxx +++ b/EMCAL/AliEMCALDigitizer.cxx @@ -417,10 +417,7 @@ void AliEMCALDigitizer::Digitize(Int_t event) Float_t timeResolution = 0; Int_t absID = -1 ; for(absID = 0; absID < nEMC; absID++) - { // Nov 30, 2006 by PAI; was from 1 to nEMC - - if (IsDead(absID)) continue; // Don't instantiate dead digits - + { Float_t energy = 0 ; // amplitude set to zero, noise will be added later @@ -605,7 +602,7 @@ void AliEMCALDigitizer::Digitize(Int_t event) Float_t ampADC = energy; DigitizeEnergyTime(ampADC, time, digit->GetId()) ; - if(ampADC < fDigitThreshold) + if(ampADC < fDigitThreshold || IsDead(digit->GetId())) digits->RemoveAt(i) ; } // digit loop