]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCQADataMakerRec.cxx
Protection against division by zero.
[u/mrichter/AliRoot.git] / TPC / AliTPCQADataMakerRec.cxx
index 14ea46573d9afabe33178bf8d4801d1111a06d30..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()); 
@@ -393,6 +393,7 @@ void AliTPCQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   // To make QA for the RAW data we use the TPC Calibration framework 
   // to handle the data and then in the end extract the data
   //
+       rawReader->Reset() ; 
   fTPCdataQA->ProcessEvent(rawReader);  
 }