]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpidESD.cxx
impoved num precision
[u/mrichter/AliRoot.git] / TRD / AliTRDpidESD.cxx
index 1087b0e0bfb7a442118fdca779c4a31b3df4f1d3..7713a1631920c94d7a7ec546eee9c845536f8b6c 100644 (file)
@@ -281,13 +281,13 @@ Bool_t AliTRDpidESD::RecalculateTrackSegmentKine(AliESDtrack * const esd
     mom    = op->GetP();
     s      = op->GetSnp();
     t      = op->GetTgl();
-          if (s < 1.) length /= TMath::Sqrt((1. - s*s) / (1. + t*t));
+    if (s < 1.) length /= TMath::Sqrt((1.-s)*(1.+s) / (1. + t*t));
     return kFALSE;
   }
   mom        = param->GetP();
   s = param->GetSnp();
   t = param->GetTgl();
-  if (s < 1.) length    /= TMath::Sqrt((1. - s*s) / (1. + t*t));
+  if (s < 1.) length    /= TMath::Sqrt((1.-s)*(1.+s) / (1. + t*t));
 
   // check if track is crossing tracking sector by propagating to chamber exit- maybe is too much :)
   Double_t alpha = param->GetAlpha();