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
275654d2
Commit
275654d2
authored
5 years ago
by
Andre Sailer
Committed by
Marko Petric
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DDG4: ddsim: disable physics.decays by default, add documentation with warning
parent
a3a1f4e3
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
+11
-1
11 additions, 1 deletion
DDG4/python/DDSim/Helper/Physics.py
with
11 additions
and
1 deletion
DDG4/python/DDSim/Helper/Physics.py
+
11
−
1
View file @
275654d2
...
@@ -11,7 +11,7 @@ class Physics( ConfigHelper ):
...
@@ -11,7 +11,7 @@ class Physics( ConfigHelper ):
super
(
Physics
,
self
).
__init__
()
super
(
Physics
,
self
).
__init__
()
self
.
_rangecut
=
0.7
*
mm
self
.
_rangecut
=
0.7
*
mm
self
.
list
=
"
FTFP_BERT
"
self
.
list
=
"
FTFP_BERT
"
self
.
decays
=
Tru
e
self
.
_
decays
=
Fals
e
self
.
_pdgfile
=
None
self
.
_pdgfile
=
None
self
.
_rejectPDGs
=
{
1
,
2
,
3
,
4
,
5
,
6
,
21
,
23
,
24
,
25
}
self
.
_rejectPDGs
=
{
1
,
2
,
3
,
4
,
5
,
6
,
21
,
23
,
24
,
25
}
self
.
_zeroTimePDGs
=
{
11
,
13
,
15
,
17
}
self
.
_zeroTimePDGs
=
{
11
,
13
,
15
,
17
}
...
@@ -77,6 +77,16 @@ class Physics( ConfigHelper ):
...
@@ -77,6 +77,16 @@ class Physics( ConfigHelper ):
raise
RuntimeError
(
"
PDGFile: %s not found
"
%
os
.
path
.
abspath
(
val
)
)
raise
RuntimeError
(
"
PDGFile: %s not found
"
%
os
.
path
.
abspath
(
val
)
)
self
.
_pdgfile
=
os
.
path
.
abspath
(
val
)
self
.
_pdgfile
=
os
.
path
.
abspath
(
val
)
@property
def
decays
(
self
):
"""
If true, add decay processes for all particles.
Only enable when creating a physics list not based on an existing Geant4 list!
"""
return
self
.
_decays
@decays.setter
def
decays
(
self
,
val
):
self
.
_decays
=
val
def
setupPhysics
(
self
,
kernel
,
name
=
None
):
def
setupPhysics
(
self
,
kernel
,
name
=
None
):
seq
=
kernel
.
physicsList
()
seq
=
kernel
.
physicsList
()
...
...
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