Printing the warning only if sin(phi) is significantly bigger than 1.
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Nov 2009 16:23:23 +0000 (16:23 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Nov 2009 16:23:23 +0000 (16:23 +0000)
STEER/AliExternalTrackParam.cxx

index 30ef63e..62a2d70 100644 (file)
@@ -612,7 +612,8 @@ Bool_t AliExternalTrackParam::Rotate(Double_t alpha) {
 
   Double_t tmp=sf*ca - cf*sa;
   if (TMath::Abs(tmp) >= kAlmost1) {
-     AliWarning(Form("Rotation failed ! %.10e",tmp)); 
+     if (TMath::Abs(tmp) > 1.+ Double_t(FLT_EPSILON))
+        AliWarning(Form("Rotation failed ! %.10e",tmp)); 
      return kFALSE;
   }