Bug fix in Mlem(): adding protection against division by zero
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Oct 2007 09:27:57 +0000 (09:27 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Oct 2007 09:27:57 +0000 (09:27 +0000)
(Sasha)

MUON/AliMUONClusterFinderMLEM.cxx

index fae9074..fe01f37 100644 (file)
@@ -1301,7 +1301,7 @@ void AliMUONClusterFinderMLEM::Mlem(AliMUONCluster& cluster,
           continue; 
         } 
 
-        if (coef[indx] > 1.e-6) 
+        if (sum1 > 1.e-6) 
         {
           sum += pad->Charge()*coef[indx]/sum1;
         }