Fix for bug #48080: the same modifications as in GetLocalXat are introduced in GetLoc...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 11:16:02 +0000 (11:16 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 11:16:02 +0000 (11:16 +0000)
ITS/AliITStrackV2.cxx

index 1ab6cf5..1d18b1a 100644 (file)
@@ -465,7 +465,10 @@ GetPhiZat(Double_t r, Double_t &phi, Double_t &z) const {
   // The track curvature is neglected.
   //------------------------------------------------------------------
   Double_t d=GetD(0.,0.);
-  if (TMath::Abs(d) > r) return kFALSE; 
+  if (TMath::Abs(d) > r) {
+    if (r>1e-1) return kFALSE;
+    r = TMath::Abs(d);
+  }
 
   Double_t rcurr=TMath::Sqrt(GetX()*GetX() + GetY()*GetY());
   if (TMath::Abs(d) > rcurr) return kFALSE;