Skip to content

Commit

Permalink
support MT in magnetic field
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Mar 11, 2024
1 parent 2d245c0 commit dab2ced
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DDG4/python/DDSim/DD4hepSimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ def run(self):

def __setMagneticFieldOptions(self, geant4):
""" create and configure the magnetic tracking setup """
field = geant4.addConfig('Geant4FieldTrackingSetupAction/MagFieldTrackingSetup')
if self.numberOfThreads > 1:
seq, field = geant4.addDetectorConstruction("Geant4FieldTrackingConstruction/MagFieldTrackingSetup")
else:
field = geant4.addConfig('Geant4FieldTrackingSetupAction/MagFieldTrackingSetup')
field.stepper = self.field.stepper
field.equation = self.field.equation
field.eps_min = self.field.eps_min
Expand Down

0 comments on commit dab2ced

Please sign in to comment.