Adding small protection
authorlaphecet <laurent.aphecetche@gmail.com>
Wed, 4 Mar 2015 08:27:09 +0000 (09:27 +0100)
committerlaphecet <laurent.aphecetche@gmail.com>
Wed, 4 Mar 2015 08:27:43 +0000 (09:27 +0100)
MUON/MUONevaluation/AliMUONCheck.cxx

index 0ae5232..d892c78 100644 (file)
@@ -309,7 +309,10 @@ AliMUONCheck::CheckESD(Bool_t pdc06TriggerResponse)
   
   AliInfo(Form("Terminate %s:", GetName())) ;
   
-  effMatch=100*fnTrackTrig/ftracktot;
+  if ( ftracktot > 0 )
+  {
+    effMatch=100*fnTrackTrig/ftracktot;
+  }
   
   if(pdc06TriggerResponse)
   {