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
a5fc6430
Commit
a5fc6430
authored
8 years ago
by
luisaleperez
Committed by
Andre Sailer
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding new guinea-pig event plugin
parent
a64f088e
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
DDSim/DD4hepSimulation.py
+4
-1
4 additions, 1 deletion
DDSim/DD4hepSimulation.py
with
4 additions
and
1 deletion
DDSim/DD4hepSimulation.py
+
4
−
1
View file @
a5fc6430
...
@@ -15,7 +15,7 @@ try:
...
@@ -15,7 +15,7 @@ try:
except
ImportError
:
except
ImportError
:
ARGCOMPLETEENABLED
=
False
ARGCOMPLETEENABLED
=
False
POSSIBLEINPUTFILES
=
(
"
.stdhep
"
,
"
.slcio
"
,
"
.HEPEvt
"
,
"
.hepevt
"
,
"
.hepmc
"
)
POSSIBLEINPUTFILES
=
(
"
.stdhep
"
,
"
.slcio
"
,
"
.HEPEvt
"
,
"
.hepevt
"
,
"
.hepmc
"
,
"
.pairs
"
)
def
outputLevel
(
level
):
def
outputLevel
(
level
):
"""
return INT for outputlevel
"""
"""
return INT for outputlevel
"""
...
@@ -362,6 +362,9 @@ class DD4hepSimulation(object):
...
@@ -362,6 +362,9 @@ class DD4hepSimulation(object):
elif
inputFile
.
endswith
(
"
.hepmc
"
):
elif
inputFile
.
endswith
(
"
.hepmc
"
):
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepmc%d
"
%
index
)
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepmc%d
"
%
index
)
gen
.
Input
=
"
Geant4EventReaderHepMC|
"
+
inputFile
gen
.
Input
=
"
Geant4EventReaderHepMC|
"
+
inputFile
elif
inputFile
.
endswith
(
"
.pairs
"
):
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/HEPEvt%d
"
%
index
)
gen
.
Input
=
"
Geant4EventReaderGuineaPig|
"
+
inputFile
else
:
else
:
##this should never happen because we already check at the top, but in case of some LogicError...
##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
)
raise
RuntimeError
(
"
Unknown input file type: %s
"
%
inputFile
)
...
...
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