]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
sin(phi)=1 is acceptable. However, for the error calculations, it is safer if sin...
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Nov 2009 11:18:40 +0000 (11:18 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Nov 2009 11:18:40 +0000 (11:18 +0000)
STEER/AliExternalTrackParam.cxx

index adc4e0f90b7faf8528eed529577ce8c73ce64190..a6f0f677ecbcdf606bd7aab59af4283abc51b512 100644 (file)
@@ -611,9 +611,9 @@ Bool_t AliExternalTrackParam::Rotate(Double_t alpha) {
   Double_t sf=fP2, cf=TMath::Sqrt((1.- fP2)*(1.+fP2)); // Improve precision
 
   Double_t tmp=sf*ca - cf*sa;
-  if (TMath::Abs(tmp) > 1.) {   // 1 is a quite acceptable value for tmp
-     if (TMath::Abs(tmp) > 1.+ Double_t(FLT_EPSILON))
-        AliWarning(Form("Rotation failed ! %.10e",tmp)); 
+  if (TMath::Abs(tmp) >= kAlmost1) {
+     if (TMath::Abs(tmp) > 1.+ Double_t(FLT_EPSILON))  
+        AliWarning(Form("Rotation failed ! %.10e",tmp));
      return kFALSE;
   }