]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/STEERBase/AliExternalTrackParam.cxx
Use alpha, x differences instead of ratios for frame consistency check in GetPredicte...
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliExternalTrackParam.cxx
index 90f59774d34ba0900456b43b560d762fd164f92a..3689fc6ffab7032e99c92817cc5ac0c5572381c2 100644 (file)
@@ -1303,11 +1303,11 @@ GetPredictedChi2(const AliExternalTrackParam *t) const {
   // and estimated at the same reference plane.
   //----------------------------------------------------------------
 
-  if (TMath::Abs(1. - t->GetAlpha()/GetAlpha()) > FLT_EPSILON) {
+  if (TMath::Abs(GetAlpha()-GetAlpha()) > FLT_EPSILON) {
       AliError("The reference systems of the tracks differ !");
       return kVeryBig;
   }
-  if (TMath::Abs(1. - t->GetX()/GetX()) > FLT_EPSILON) {
+  if (TMath::Abs(t->GetX()-GetX()) > FLT_EPSILON) {
       AliError("The reference of the tracks planes differ !");
       return kVeryBig;
   }