Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
NPDet
Commits
fcadd552
Commit
fcadd552
authored
Feb 15, 2022
by
Wouter Deconinck
Browse files
Gun.py: when setting gun.energy, set both min and max
parent
d4c34d6a
Pipeline
#27838
passed with stages
in 1 minute and 32 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
src/dd4pod/python/npsim/DDSim/Helper/Gun.py
View file @
fcadd552
...
...
@@ -113,7 +113,9 @@ class Gun(ConfigHelper):
def
setOptions
(
self
,
ddg4Gun
):
"""set the starting properties of the DDG4 particle gun"""
try
:
ddg4Gun
.
energy
=
self
.
energy
ddg4Gun
.
energy
=
self
.
energy
# ddg4Gun.energy actually sets momentum
ddg4Gun
.
MomentumMin
=
self
.
energy
ddg4Gun
.
MomentumMax
=
self
.
energy
ddg4Gun
.
particle
=
self
.
particle
ddg4Gun
.
multiplicity
=
self
.
multiplicity
ddg4Gun
.
position
=
self
.
position
...
...
Write
Preview
Markdown
is supported
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