]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
protection againts 0 energy - Salvatore
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Sep 2012 15:04:21 +0000 (15:04 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Sep 2012 15:04:21 +0000 (15:04 +0000)
ANALYSIS/TenderSupplies/AliEMCALTenderSupply.cxx

index 8e7e14403f20cfc7ca09d2a8570ca240bf163ae5..926afeca4f2f8a9632130782cb51e26325134791 100644 (file)
@@ -738,9 +738,14 @@ void AliEMCALTenderSupply::ProcessEvent()
     // CLUSTER ENERGY ---------------------------------------------
     // does process local cell recalibration energy and time without replacing
     // the global cell values, in case of no cell recalib done yet
-    if( fReCalibCluster ) 
+    if( fReCalibCluster ) {
       fEMCALRecoUtils->RecalibrateClusterEnergy(fEMCALGeo, clust, cells);
-
+      if (clust->E() < 1e-9) {
+        delete clusArr->RemoveAt(icluster);
+        continue;
+      }
+    }
+    
     // CLUSTER POSITION -------------------------------------------
     // does process local cell energy recalibration, if enabled and cells
     // not calibrated yet