]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use alpha, x differences instead of ratios for frame consistency check in GetPredicte...
authorshahoian <ruben.shahoyan@cern.ch>
Fri, 27 Jun 2014 12:14:18 +0000 (14:14 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Fri, 27 Jun 2014 12:14:18 +0000 (14:14 +0200)
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;
   }