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
99ab9d9e
Commit
99ab9d9e
authored
9 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDSim: add raising exception just in case we let an unknown input file trough again
parent
2af76854
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
DDSim/DD4hepSimulation.py
+3
-0
3 additions, 0 deletions
DDSim/DD4hepSimulation.py
with
3 additions
and
0 deletions
DDSim/DD4hepSimulation.py
+
3
−
0
View file @
99ab9d9e
...
@@ -316,6 +316,9 @@ class DD4hepSimulation(object):
...
@@ -316,6 +316,9 @@ class DD4hepSimulation(object):
elif
inputFile
.
endswith
(
"
.hepmc
"
):
elif
inputFile
.
endswith
(
"
.hepmc
"
):
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepmc1
"
)
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepmc1
"
)
gen
.
Input
=
"
Geant4EventReaderHepMC|
"
+
inputFile
gen
.
Input
=
"
Geant4EventReaderHepMC|
"
+
inputFile
else
:
##this should never happen because we already check at the top, but in case of some LogicError...
raise
RuntimeError
(
"
Unknown input file type: %s
"
%
inputFile
)
gen
.
Sync
=
self
.
skipNEvents
gen
.
Sync
=
self
.
skipNEvents
gen
.
Mask
=
index
gen
.
Mask
=
index
actionList
.
append
(
gen
)
actionList
.
append
(
gen
)
...
...
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