X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PWG%2FEMCAL%2FAliAnalysisTaskEMCALClusterizeFast.cxx;h=1e304629a47b8e20c413100bd6585d49373efe5e;hb=78e5db304b5b0ab509b6b075daa33a139cb56650;hp=7dfd45508f0ef0790ce6e180b1179b54265bb702;hpb=648ade84d9af51372c158dba399153c66f086211;p=u%2Fmrichter%2FAliRoot.git diff --git a/PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx b/PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx index 7dfd45508f0..1e304629a47 100644 --- a/PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx +++ b/PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx @@ -512,11 +512,12 @@ Bool_t AliAnalysisTaskEMCALClusterizeFast::AcceptCell(Int_t cellNumber) { Bool_t accept = kTRUE; if(fRejectExoticCells) { //Remove exotic cells before making digits + Bool_t exRemoval = fRecoUtils->IsRejectExoticCell(); fRecoUtils->SwitchOnRejectExoticCell();//switch on and off Int_t bunchCrossNo = InputEvent()->GetBunchCrossNumber(); Bool_t isEx = fRecoUtils->IsExoticCell(cellNumber, fCaloCells, bunchCrossNo); if(isEx) accept = kFALSE; - fRecoUtils->SwitchOffRejectExoticCell();//switch on and off + if(!exRemoval) fRecoUtils->SwitchOffRejectExoticCell();//switch on and off } return accept; }