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
0c183fbf
Commit
0c183fbf
authored
2 years ago
by
Dmitry Kalinkin
Committed by
Andre Sailer
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix flake8 errors
parent
e0820dff
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/DD4hepSimulation.py
+14
-14
14 additions, 14 deletions
DDG4/python/DDSim/DD4hepSimulation.py
with
14 additions
and
14 deletions
DDG4/python/DDSim/DD4hepSimulation.py
+
14
−
14
View file @
0c183fbf
...
...
@@ -42,12 +42,12 @@ except ImportError:
ARGCOMPLETEENABLED
=
False
POSSIBLEINPUTFILES
=
(
"
.stdhep
"
,
"
.slcio
"
,
"
.HEPEvt
"
,
"
.hepevt
"
,
"
.hepmc
"
,
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
"
.pairs
"
,
)
"
.stdhep
"
,
"
.slcio
"
,
"
.HEPEvt
"
,
"
.hepevt
"
,
"
.hepmc
"
,
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
"
.pairs
"
,
)
class
DD4hepSimulation
(
object
):
...
...
@@ -415,10 +415,10 @@ class DD4hepSimulation(object):
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepevt%d
"
%
index
)
gen
.
Input
=
"
Geant4EventReaderHepEvtLong|
"
+
inputFile
elif
inputFile
.
endswith
((
"
.hepmc
"
,
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
)):
"
.hepmc
"
,
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
)):
if
self
.
hepmc3
.
useHepMC3
:
gen
=
DDG4
.
GeneratorAction
(
kernel
,
"
Geant4InputAction/hepmc%d
"
%
index
)
gen
.
Parameters
=
self
.
hepmc3
.
getParameters
()
...
...
@@ -543,10 +543,10 @@ class DD4hepSimulation(object):
if
not
all
(
fileName
.
endswith
(
extensions
)
for
fileName
in
fileNames
):
self
.
_errorMessages
.
append
(
"
ERROR: Unknown fileformat for file: %s
"
%
fileNames
)
if
not
self
.
hepmc3
.
useHepMC3
and
any
(
fileName
.
endswith
((
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
))
for
fileName
in
fileNames
):
"
.hepmc.gz
"
,
"
.hepmc.xz
"
,
"
.hepmc.bz2
"
,
"
.hepmc3
"
,
"
.hepmc3.gz
"
,
"
.hepmc3.xz
"
,
"
.hepmc3.bz2
"
,
"
.hepmc3.tree.root
"
,
))
for
fileName
in
fileNames
):
self
.
_errorMessages
.
append
(
"
ERROR: HepMC3 files or compressed HepMC2 require the use of HepMC3 library
"
)
return
fileNames
...
...
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