From: ivana Date: Thu, 11 Oct 2007 09:27:57 +0000 (+0000) Subject: Bug fix in Mlem(): adding protection against division by zero X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=b6c7e9f67b10f29f3e7e555fcf80bf8de5cc4f02;p=u%2Fmrichter%2FAliRoot.git Bug fix in Mlem(): adding protection against division by zero (Sasha) --- diff --git a/MUON/AliMUONClusterFinderMLEM.cxx b/MUON/AliMUONClusterFinderMLEM.cxx index fae9074caa1..fe01f379259 100644 --- a/MUON/AliMUONClusterFinderMLEM.cxx +++ b/MUON/AliMUONClusterFinderMLEM.cxx @@ -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; }