Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
NPDet
Commits
b409cee9
Commit
b409cee9
authored
Jun 19, 2021
by
Wouter Deconinck
Browse files
max theta corresponds to min eta
parent
bd01208e
Pipeline
#12054
passed with stage
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dd4pod/python/npsim/DDSim/Helper/Gun.py
View file @
b409cee9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment