From 24ed01bc1497af2a2ddaf124afc6a126d85aea5d Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Thu, 18 Jan 2024 19:09:08 +0100 Subject: [PATCH] Enable energy deposit collection in FiberTubeCalorimeter example --- examples/ClientTests/scripts/FiberTubeCalorimeter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ClientTests/scripts/FiberTubeCalorimeter.py b/examples/ClientTests/scripts/FiberTubeCalorimeter.py index bf9695582..2543a0367 100644 --- a/examples/ClientTests/scripts/FiberTubeCalorimeter.py +++ b/examples/ClientTests/scripts/FiberTubeCalorimeter.py @@ -67,7 +67,8 @@ def run(): geant4.setupROOTOutput('RootOutput', 'FiberTubeCalorimeter_' + time.strftime('%Y-%m-%d_%H-%M')) # 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 # And handle the simulation particles. -- GitLab