Fixing an erreneous message logic
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Oct 2012 22:15:39 +0000 (22:15 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Oct 2012 22:15:39 +0000 (22:15 +0000)
MUON/AliMUONClusterSplitterMLEM.cxx

index c27028b..7b15421 100644 (file)
@@ -236,7 +236,7 @@ AliMUONClusterSplitterMLEM::Fcn1(const AliMUONCluster& cluster,
     chi2 += delta;
   } // for (Int_t j=0;
   if (iflag == 0 && npads) qAver = qTot / npads;
-  if (!npads)
+  if (!npads && iflag==0)
   {
     AliError(Form("Got npads=0. Please check"));
   }