Skip to content
Snippets Groups Projects
Commit 7b773edd authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

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

parent 514d4ddb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment