Protection against division by zero.
[u/mrichter/AliRoot.git] / 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());