Skip to content
Snippets Groups Projects
Commit e3b2708a authored by Markus Frank's avatar Markus Frank Committed by Andre Sailer
Browse files

Add implementation for signal handling. Use generic signal handler in DDG4 for...

Add implementation for signal handling. Use generic signal handler in DDG4 for controlled shutdown on CTRL-C. Add test DDG4_SIGINT_handler in examples/DDG4
parent 3125102f
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ def run(): ...@@ -67,7 +67,7 @@ def run():
act = DDG4.EventAction(kernel, 'TestSignalAction/SigAction', True) act = DDG4.EventAction(kernel, 'TestSignalAction/SigAction', True)
act.signal_event = 3 act.signal_event = 3
kernel.eventAction().add(act) kernel.eventAction().add(act)
# And handle the simulation particles. # And handle the simulation particles.
part = DDG4.GeneratorAction(kernel, "Geant4ParticleHandler/ParticleHandler") part = DDG4.GeneratorAction(kernel, "Geant4ParticleHandler/ParticleHandler")
kernel.generatorAction().adopt(part) kernel.generatorAction().adopt(part)
......
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