]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliMUONQATask.cxx
Added protection
[u/mrichter/AliRoot.git] / ESDCheck / AliMUONQATask.cxx
index 9bfc7785c7e0becc1ee0965770d1e0d1520a744e..c4e3a182ee7bd7c39f70dcc6835055b8cc67025b 100644 (file)
@@ -203,7 +203,9 @@ void AliMUONQATask::Terminate(Option_t *)
 
   AliInfo(Form("Terminate %s:", GetName())) ;
   
-  Int_t eff_match = 100 * fnTrackTrig / ftracktot ;
+  Int_t eff_match = -1 ; 
+  if (ftracktot) 
+    eff_match = 100 * fnTrackTrig / ftracktot ;
 
   printf("===================================================\n") ;
   printf("================  %s ESD SUMMARY    ==============\n", GetName()) ;