Commit fcadd552 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Gun.py: when setting gun.energy, set both min and max

parent d4c34d6a
Pipeline #27838 passed with stages
in 1 minute and 32 seconds
......@@ -113,7 +113,9 @@ class Gun(ConfigHelper):
def setOptions(self, ddg4Gun):
"""set the starting properties of the DDG4 particle gun"""
try:
ddg4Gun.energy = self.energy
ddg4Gun.energy = self.energy # ddg4Gun.energy actually sets momentum
ddg4Gun.MomentumMin = self.energy
ddg4Gun.MomentumMax = self.energy
ddg4Gun.particle = self.particle
ddg4Gun.multiplicity = self.multiplicity
ddg4Gun.position = self.position
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment