diff --git a/src/dd4pod/python/npsim/DDSim/Helper/Gun.py b/src/dd4pod/python/npsim/DDSim/Helper/Gun.py index 9fdde03b5396aea45891727f6d2ba06a0e7f5869..ab1f58a8209858db275405b617faec3db9baf1f3 100644 --- a/src/dd4pod/python/npsim/DDSim/Helper/Gun.py +++ b/src/dd4pod/python/npsim/DDSim/Helper/Gun.py @@ -122,9 +122,13 @@ class Gun(ConfigHelper): ddg4Gun.direction = self.direction ddg4Gun.Distribution = self.distribution if self.etaMin is not None: - self.thetaMin = str(2.0*atan(exp(-float(self.etaMin)))/deg) + self.thetaMax = str(2.0*atan(exp(-float(self.etaMin)))) + ddg4Gun.ThetaMax = str(2.0*atan(exp(-float(self.etaMin)))) + ddg4Gun.isotrop = True if self.etaMax is not None: - self.thetaMax = str(2.0*atan(exp(-float(self.etaMax)))/deg) + self.thetaMin = str(2.0*atan(exp(-float(self.etaMax)))) + ddg4Gun.ThetaMin = str(2.0*atan(exp(-float(self.etaMax)))) + ddg4Gun.isotrop = True if self.thetaMin is not None: ddg4Gun.ThetaMin = self.thetaMin ddg4Gun.isotrop = True