Corrected protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 May 2009 10:22:29 +0000 (10:22 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 May 2009 10:22:29 +0000 (10:22 +0000)
TOF/AliTOFQADataMakerRec.cxx

index d0d0581..573db59 100644 (file)
@@ -321,8 +321,10 @@ void AliTOFQADataMakerRec::MakeESDs(AliESDEvent * esd)
     GetESDsData(0)->Fill(TMath::Log10(nentries)) ;
   }
 
-  Float_t ratio = (Float_t)ntofpid/(Float_t)ntof*100.;
-  if(ntof>0)GetESDsData(4)->Fill(ratio) ;
+  if(ntof>0) {
+    Float_t ratio = (Float_t)ntofpid/(Float_t)ntof*100.;
+    GetESDsData(4)->Fill(ratio) ;
+  }
 
 }