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
670d80e1
Commit
670d80e1
authored
5 years ago
by
Andre Sailer
Committed by
Marko Petric
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DDSim.Physics: add docstring for list
parent
275654d2
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/Physics.py
+9
-1
9 additions, 1 deletion
DDG4/python/DDSim/Helper/Physics.py
with
9 additions
and
1 deletion
DDG4/python/DDSim/Helper/Physics.py
+
9
−
1
View file @
670d80e1
...
...
@@ -10,7 +10,7 @@ class Physics( ConfigHelper ):
def
__init__
(
self
):
super
(
Physics
,
self
).
__init__
()
self
.
_rangecut
=
0.7
*
mm
self
.
list
=
"
FTFP_BERT
"
self
.
_
list
=
"
FTFP_BERT
"
self
.
_decays
=
False
self
.
_pdgfile
=
None
self
.
_rejectPDGs
=
{
1
,
2
,
3
,
4
,
5
,
6
,
21
,
23
,
24
,
25
}
...
...
@@ -88,6 +88,14 @@ class Physics( ConfigHelper ):
def
decays
(
self
,
val
):
self
.
_decays
=
val
@property
def
list
(
self
):
"""
The name of the Geant4 Physics list.
"""
return
self
.
_list
@list.setter
def
list
(
self
,
val
):
self
.
_list
=
val
def
setupPhysics
(
self
,
kernel
,
name
=
None
):
seq
=
kernel
.
physicsList
()
seq
.
extends
=
name
if
name
is
not
None
else
self
.
list
...
...
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