diff --git a/examples/ClientTests/scripts/FiberTubeCalorimeter.py b/examples/ClientTests/scripts/FiberTubeCalorimeter.py index bf96955827b675501ab0ed106a7002d1a5c8f8df..2543a036799ab0f2dac8600fe31f24ac72285a2b 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.