Additional protection, for the Savannah ticket #68145 (M. Ivanov)
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 May 2010 12:55:15 +0000 (12:55 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 May 2010 12:55:15 +0000 (12:55 +0000)
STEER/AliExternalTrackParam.cxx

index 153fb6c..2d2ad64 100644 (file)
@@ -1852,6 +1852,7 @@ Bool_t AliExternalTrackParam::PropagateToBxByBz(Double_t xk, const Double_t b[3]
 
   Double_t dx=xk-fX;
   if (TMath::Abs(dx)<=kAlmost0)  return kTRUE;
+  if (TMath::Abs(fP[4])<=kAlmost0) return kFALSE;
 
   Double_t crv=GetC(b[2]);
   if (TMath::Abs(b[2]) < kAlmost0Field) crv=0.;