Commit b409cee9 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

max theta corresponds to min eta

parent bd01208e
Pipeline #12054 passed with stage
in 25 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment