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
e43b6461
Commit
e43b6461
authored
4 months ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDSim: add signalhandler by default, add disableSignalHandler flag to turn it off
parent
2140a5c6
No related branches found
Branches containing commit
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/DD4hepSimulation.py
+7
-0
7 additions, 0 deletions
DDG4/python/DDSim/DD4hepSimulation.py
with
7 additions
and
0 deletions
DDG4/python/DDSim/DD4hepSimulation.py
+
7
−
0
View file @
e43b6461
...
...
@@ -76,6 +76,7 @@ class DD4hepSimulation(object):
self
.
vertexSigma
=
[
0.0
,
0.0
,
0.0
,
0.0
]
self
.
vertexOffset
=
[
0.0
,
0.0
,
0.0
,
0.0
]
self
.
enableDetailedShowerMode
=
False
self
.
disableSignalHandler
=
False
self
.
_errorMessages
=
[]
self
.
_dumpParameter
=
False
...
...
@@ -208,6 +209,10 @@ class DD4hepSimulation(object):
default
=
self
.
enableDetailedShowerMode
,
help
=
"
use detailed shower mode
"
)
parser
.
add_argument
(
"
--disableSignalHandler
"
,
action
=
"
store_true
"
,
dest
=
"
disableSignalHandler
"
,
default
=
self
.
disableSignalHandler
,
help
=
"
disable the Signal Handler of DD4hep
"
)
parser
.
add_argument
(
"
--dumpSteeringFile
"
,
action
=
"
store_true
"
,
dest
=
"
dumpSteeringFile
"
,
default
=
self
.
_dumpSteeringFile
,
help
=
"
print an example steering file to stdout
"
)
...
...
@@ -317,6 +322,8 @@ class DD4hepSimulation(object):
# simple = DDG4.Geant4( kernel, tracker='Geant4TrackerAction',calo='Geant4CalorimeterAction')
# geant4 = DDG4.Geant4( kernel, tracker='Geant4TrackerCombineAction',calo='Geant4ScintillatorCalorimeterAction')
geant4
=
DDG4
.
Geant4
(
kernel
,
tracker
=
self
.
action
.
tracker
,
calo
=
self
.
action
.
calo
)
if
not
self
.
disableSignalHandler
:
geant4
.
registerInterruptHandler
()
geant4
.
printDetectors
()
...
...
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