Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:22

0001 """Helper object for Magnetic Field properties"""
0002 from g4units import mm, m
0003 from DDSim.Helper.ConfigHelper import ConfigHelper
0004 
0005 
0006 class MagneticField(ConfigHelper):
0007   """Configuration for the magnetic field (stepper)"""
0008 
0009   def __init__(self):
0010     super(MagneticField, self).__init__()
0011     self.stepper = "ClassicalRK4"
0012     self.equation = "Mag_UsualEqRhs"
0013     self.eps_min = 5e-05 * mm
0014     self.eps_max = 0.001 * mm
0015     self.min_chord_step = 0.01 * mm
0016     self.delta_chord = 0.25 * mm
0017     self.delta_intersection = 0.001 * mm
0018     self.delta_one_step = 0.01 * mm
0019     self.largest_step = 10 * m
0020     self._closeProperties()