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 b287d03..22777fa 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;
 }