Skip to content
Snippets Groups Projects
Commit 9c5e891a authored by John Kenneth Anders's avatar John Kenneth Anders
Browse files

Merge branch '21.0-Addition-callbackForEMRangeCuts' into '21.0'

Adds an option to turn on range cuts for gamma processes (conv, phot, compt)

See merge request atlas/athena!20013
parents c6a7f5b4 1fb534b3
No related branches found
No related tags found
No related merge requests found
......@@ -51,3 +51,9 @@ def add_EnergyConservationTest():
# Enable the energy conservation test action
simFlags.OptionalUserActionList.addAction(
'G4UA::EnergyConservationTestTool', ['Event', 'Tracking', 'Step'])
## Range cuts for gamma processes (conv, phot, compt)
## these are off by default in Geant4
def turn_on_gamma_range_cuts():
from G4AtlasApps.SimFlags import simFlags
simFlags.G4Commands += ['/process/em/applyCuts true']
# Turn on range cuts for gamma processes (conv, phot, compt)
from G4AtlasApps import callbacks
callbacks.turn_on_gamma_range_cuts()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment