Skip to content
Snippets Groups Projects
Commit b409cee9 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

max theta corresponds to min eta

parent bd01208e
Branches
Tags
1 merge request!193Draft: Resolve "npsim gun shoudl have --gun.etaMin and --gun.etaMax"
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment