]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility to work without vertex
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 May 2006 13:53:01 +0000 (13:53 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 May 2006 13:53:01 +0000 (13:53 +0000)
STEER/AliESDtrack.cxx

index 75a9d6faf74b159f0a6e9f7385b913199f05a8cd..d23ca0e2d30dc135b01e29aa4f1a2f0b49258757 100644 (file)
@@ -835,6 +835,9 @@ Bool_t AliESDtrack::RelateToVertex
   //    In the case of success, the returned value is kTRUE
   //    (otherwise, it's kFALSE)
   //  
+
+  if (!vtx) return kFALSE;
+
   Double_t alpha=GetAlpha();
   Double_t sn=TMath::Sin(alpha), cs=TMath::Cos(alpha);
   Double_t x=GetX(), y=GetParameter()[0], snp=GetParameter()[2];