Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
76fa4d56
Commit
76fa4d56
authored
3 years ago
by
Wouter Deconinck
Committed by
Andre Sailer
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add docstring to gun.momentumMin; default is 0.0
parent
f37f5645
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/python/DDSim/Helper/Gun.py
+3
-2
3 additions, 2 deletions
DDG4/python/DDSim/Helper/Gun.py
with
3 additions
and
2 deletions
DDG4/python/DDSim/Helper/Gun.py
+
3
−
2
View file @
76fa4d56
...
...
@@ -26,6 +26,7 @@ class Gun(ConfigHelper):
self
.
phiMax
=
None
self
.
thetaMin
=
None
self
.
thetaMax
=
None
self
.
_momentumMin_EXTRA
=
{
'
help
'
:
"
Minimal momentum when using distribution (default = 0.0)
"
}
self
.
momentumMin
=
None
self
.
momentumMax
=
None
...
...
@@ -113,8 +114,8 @@ class Gun(ConfigHelper):
def
setOptions
(
self
,
ddg4Gun
):
"""
set the starting properties of the DDG4 particle gun
"""
try
:
ddg4Gun
.
energy
=
self
.
energy
# ddg4Gun.energy actually sets momentum
ddg4Gun
.
MomentumMin
=
self
.
energy
ddg4Gun
.
energy
=
self
.
energy
# ddg4Gun.energy actually sets momentum
ddg4Gun
.
MomentumMin
=
0.0
ddg4Gun
.
MomentumMax
=
self
.
energy
ddg4Gun
.
particle
=
self
.
particle
ddg4Gun
.
multiplicity
=
self
.
multiplicity
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment