Additional protection in case of zero magnetic field (Yu.Belikov)
[u/mrichter/AliRoot.git] / STEER / AliTracker.cxx
index b287d035f7c6f21a087e865c9d96cba7a34968fe..22777faa94e68b0201eee4e73bf05f60b7c8072b 100644 (file)
@@ -59,7 +59,7 @@ void AliTracker::SetFieldMap(const AliMagF* map) {
   //This passes the field map to the reconstruction.
   //--------------------------------------------------------------------
   if (map==0) AliFatalClass("Can't access the field map !");
-  AliKalmanTrack::SetConvConst(1000/0.299792458/map->SolenoidField());
+  AliKalmanTrack::SetConvConst(1000/0.299792458/(map->SolenoidField()+1e-13));
   fgkFieldMap=map;
 }