Fix for bug #48080: Dip at zero in the distribution of Delta-phi and d: PbPb events
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 10:17:47 +0000 (10:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 17 May 2009 10:17:47 +0000 (10:17 +0000)
ITS/AliITStrackV2.cxx

index 4cd0a0d..1ab6cf5 100644 (file)
@@ -484,7 +484,10 @@ GetLocalXat(Double_t r,Double_t &xloc) 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());
   Double_t phicurr=GetAlpha()+TMath::ASin(GetSnp());