From 76fa4d56b1393bf9bacbd4461fa05ef5b202906a Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Thu, 3 Mar 2022 16:51:09 -0600
Subject: [PATCH] Add docstring to gun.momentumMin; default is 0.0

---
 DDG4/python/DDSim/Helper/Gun.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/DDG4/python/DDSim/Helper/Gun.py b/DDG4/python/DDSim/Helper/Gun.py
index 764a35c91..4fd2f1f21 100644
--- a/DDG4/python/DDSim/Helper/Gun.py
+++ b/DDG4/python/DDSim/Helper/Gun.py
@@ -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
-- 
GitLab