]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Numerically stable formula (A. Dainese)
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Nov 2008 13:24:43 +0000 (13:24 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Nov 2008 13:24:43 +0000 (13:24 +0000)
STEER/AliExternalTrackParam.cxx

index e500c450766789debe54dfc0b08d69114ea750b0..4067017d789679d0f16662fc4b3648825b6de0bf 100644 (file)
@@ -1373,7 +1373,8 @@ AliExternalTrackParam::GetXYZAt(Double_t x, Double_t b, Double_t *r) const {
   Double_t r1=TMath::Sqrt(1.- f1*f1), r2=TMath::Sqrt(1.- f2*f2);
   r[0] = x;
   r[1] = fP[0] + dx*(f1+f2)/(r1+r2);
-  r[2] = fP[1] + dx*(f1+f2)/(f1*r2 + f2*r1)*fP[3];
+  r[2] = fP[1] + dx*(r2 + f2*(f1+f2)/(r1+r2))*fP[3];//Thanks to Andrea & Peter
+
   return Local2GlobalPosition(r,fAlpha);
 }