]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fix
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 09:41:25 +0000 (09:41 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 09:41:25 +0000 (09:41 +0000)
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtHelper.cxx

index d44172de03d70478bb9e4b4db70021cf79e28118..93c3f2bdc808b4a429a7bff1fbc57932bb00cfb7 100644 (file)
@@ -149,7 +149,8 @@ const AliESDVertex* AlidNdPtHelper::GetVertex(AliESDEvent* const aEsd, const Ali
 
         Double_t x[3]; t->GetXYZ(x);
         Double_t b[3]; AliTracker::GetBxByBz(x,b);
-       t->RelateToVertexTPCBxByBz(vTPC, b, kVeryBig);
+       Bool_t isOK = t->RelateToVertexTPCBxByBz(vTPC, b, kVeryBig);
+        if(!isOK) continue;
       }
       
       delete vTPC;