diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index 85f5e263bb7b5502d12ba722f1fd91f4853524a1..9224d98073d0972ff8886cd01f8ae7ac467bfcfe 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -461,6 +461,7 @@ class DD4hepSimulation(object): field.delta_chord = self.field.delta_chord field.delta_intersection = self.field.delta_intersection field.delta_one_step = self.field.delta_one_step + field.largest_step = self.field.largest_step def __checkFileFormat(self, fileNames, extensions): """check if the fileName is allowed, note that the filenames are case diff --git a/DDSim/Helper/MagneticField.py b/DDSim/Helper/MagneticField.py index 4a92c5170c9d73409a227ae3e81782962b94dde7..7b4a373edc2b1ddd7e3a3f23b7c8c02fd325b3db 100644 --- a/DDSim/Helper/MagneticField.py +++ b/DDSim/Helper/MagneticField.py @@ -1,5 +1,5 @@ """Helper object for Magnetic Field properties""" -from SystemOfUnits import mm +from SystemOfUnits import mm, m from DDSim.Helper.ConfigHelper import ConfigHelper class MagneticField( ConfigHelper ): @@ -14,3 +14,4 @@ class MagneticField( ConfigHelper ): self.delta_chord = 0.25*mm self.delta_intersection = 1e-05*mm self.delta_one_step = 1e-04*mm + self.largest_step = 10*m