Additional protection in case of zero magnetic field (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Oct 2004 10:28:31 +0000 (10:28 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Oct 2004 10:28:31 +0000 (10:28 +0000)
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;
 }