Protection against division by zero.
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Oct 2008 11:35:31 +0000 (11:35 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Oct 2008 11:35:31 +0000 (11:35 +0000)
TPC/AliTPCQADataMakerRec.cxx

index 55b31340ee5ee026e212a26cf777b476ff792887..ebeab35ae6a4b6c37d22f8e8f02b4b0fcb1be6a2 100644 (file)
@@ -379,7 +379,7 @@ void AliTPCQADataMakerRec::MakeESDs(AliESDEvent * esd)
     
     Int_t nTPCclusters         = track->GetTPCNcls();
     Int_t nTPCclustersFindable = track->GetTPCNclsF();
-    
+    if ( nTPCclustersFindable<=0) continue;
     fHistESDclusters->Fill(nTPCclusters);
     fHistESDratio->Fill(Float_t(nTPCclusters)/Float_t(nTPCclustersFindable));
     fHistESDpt->Fill(track->Pt());