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 adc4e0f..a6f0f67 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;
   }