]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPadStatusMaker.cxx
Possibility to vary the cos(PA) cut
[u/mrichter/AliRoot.git] / MUON / AliMUONPadStatusMaker.cxx
index 67acc13782a69b28eba9779e0c1620c22128cd9a..f7ff3c77db8ed7ee1ba2cea552e88583f6d16920 100644 (file)
@@ -756,11 +756,17 @@ AliMUONPadStatusMaker::Report(UInt_t mask)
     }
   }
   
+  if (!nPads) 
+  {
+    AliError("Got no pad from the iterator ?! That's not normal. Please check !");
+    return;
+  }
+  
   TString msg;
   Int_t ntimes;
   
   cout << Form("According to mask %x (human readable form below) %6d pads are bad (over a total of %6d, i.e. %7.2f %%)",
-               mask,nBadPads,nPads,nPads ? nBadPads*100.0/nPads : 0.0) << endl;
+               mask,nBadPads,nPads,nBadPads*100.0/nPads) << endl;
   cout << AliMUONPadStatusMaker::AsCondition(mask) << endl;
   cout << "--------" << endl;