Skip to content
Snippets Groups Projects
Commit 24ed01bc authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Enable energy deposit collection in FiberTubeCalorimeter example

parent 02ca92b7
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ def run(): ...@@ -67,7 +67,8 @@ def run():
geant4.setupROOTOutput('RootOutput', 'FiberTubeCalorimeter_' + time.strftime('%Y-%m-%d_%H-%M')) geant4.setupROOTOutput('RootOutput', 'FiberTubeCalorimeter_' + time.strftime('%Y-%m-%d_%H-%M'))
# Setup particle gun # Setup particle gun
gun = geant4.setupGun("Gun", particle='e+', energy=50 * GeV, multiplicity=1, position=(0.0, 0.0, -364.0*cm)) pos = (0.0, 0.0, -364.0 * cm)
gun = geant4.setupGun("Gun", particle='e+', energy=50 * GeV, multiplicity=1, position=pos)
gun.OutputLevel = generator_output_level gun.OutputLevel = generator_output_level
# And handle the simulation particles. # And handle the simulation particles.
......
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