]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliAnalysisTaskEMCALClusterizeFast.cxx
index 7dfd45508f0ef0790ce6e180b1179b54265bb702..1e304629a47b8e20c413100bd6585d49373efe5e 100644 (file)
@@ -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;
 }