diff --git a/DDG4/python/DDSim/Helper/Gun.py b/DDG4/python/DDSim/Helper/Gun.py index 764a35c919c657c03f095da082f4753bd2fee7ee..4fd2f1f21ffcd702d7b3b8974af9a87088578a19 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