]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fix
authorakalweit <Alexander.Philipp.Kalweit@cern.ch>
Mon, 17 Feb 2014 13:13:58 +0000 (14:13 +0100)
committerakalweit <Alexander.Philipp.Kalweit@cern.ch>
Mon, 17 Feb 2014 13:13:58 +0000 (14:13 +0100)
PWGPP/EvTrkSelection/AliAnalysisTrackingUncertainties.cxx

index cc6fd2d3856f93a93579085c82519f610467737c..be651d5d35fd18dc9878d272683643c6dffd0202 100644 (file)
@@ -350,6 +350,14 @@ void  AliAnalysisTrackingUncertainties::ProcessItsTpcMatching(){
       hdPtRel_ITSTPC->Fill(pt,(pt-fMatchTr[0]->Pt())/pt); 
       hdInvPtRel_ITSTPC->Fill(pt,pt*( 1/pt - (1/fMatchTr[0]->Pt()) )); 
     }
+    
+    if (nmatch>0 && fESDtrackCuts){
+      
+      if(fESDtrackCuts->AcceptTrack(fMatchTr[0])){
+       hBestMatch_cuts->Fill(pt,fMatchChi[0]);
+      }
+    }
+    
     //
     for (int imt=nmatch;imt--;) {
       hAllMatch->Fill(pt,fMatchChi[imt]);