Adding a protection against division by zero in Fcn1();
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 May 2010 12:06:09 +0000 (12:06 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 May 2010 12:06:09 +0000 (12:06 +0000)
this fixes the bug report #66805.

MUON/AliMUONClusterSplitterMLEM.cxx

index 1de8e48..bedd742 100644 (file)
@@ -213,7 +213,8 @@ AliMUONClusterSplitterMLEM::Fcn1(const AliMUONCluster& cluster,
   {
     AliMUONPad* pad = cluster.Pad(j);
     //if ( pad->Status() !=1 || pad->IsSaturated() ) continue;
-    if ( pad->Status() != AliMUONClusterFinderMLEM::GetUseForFitFlag()) continue;
+    if ( pad->Status() != AliMUONClusterFinderMLEM::GetUseForFitFlag() ||
+         pad->Charge() == 0 ) continue;
     if (iflag == 0) {
       if ( pad->IsReal() ) npads++; // exclude virtual pads
       qTot += pad->Charge();