Skip to content
Snippets Groups Projects
Commit 76fa4d56 authored by Wouter Deconinck's avatar Wouter Deconinck Committed by Andre Sailer
Browse files

Add docstring to gun.momentumMin; default is 0.0

parent f37f5645
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ class Gun(ConfigHelper):
self.phiMax = None
self.thetaMin = None
self.thetaMax = None
self._momentumMin_EXTRA = {'help': "Minimal momentum when using distribution (default = 0.0)"}
self.momentumMin = None
self.momentumMax = None
......@@ -113,8 +114,8 @@ class Gun(ConfigHelper):
def setOptions(self, ddg4Gun):
"""set the starting properties of the DDG4 particle gun"""
try:
ddg4Gun.energy = self.energy # ddg4Gun.energy actually sets momentum
ddg4Gun.MomentumMin = self.energy
ddg4Gun.energy = self.energy # ddg4Gun.energy actually sets momentum
ddg4Gun.MomentumMin = 0.0
ddg4Gun.MomentumMax = self.energy
ddg4Gun.particle = self.particle
ddg4Gun.multiplicity = self.multiplicity
......
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