Skip to content
Snippets Groups Projects
MagneticField.py 620 B
Newer Older
"""Helper object for Magnetic Field properties"""
from g4units import mm, m
from DDSim.Helper.ConfigHelper import ConfigHelper

Marko Petric's avatar
Marko Petric committed

class MagneticField(ConfigHelper):
  """Configuration for the magnetic field (stepper)"""
Marko Petric's avatar
Marko Petric committed

  def __init__(self):
    super(MagneticField, self).__init__()
    self.stepper = "ClassicalRK4"
    self.equation = "Mag_UsualEqRhs"
Marko Petric's avatar
Marko Petric committed
    self.eps_min = 5e-05 * mm
    self.eps_max = 0.001 * mm
    self.min_chord_step = 0.01 * mm
    self.delta_chord = 0.25 * mm
    self.delta_intersection = 0.001 * mm
    self.delta_one_step = 0.01 * mm
    self.largest_step = 10 * m
    self._closeProperties()