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
bd212097
Commit
bd212097
authored
5 years ago
by
Marko Petric
Committed by
Andre Sailer
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix ddsim executable
parent
c37b02cc
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/bin/ddsim
+9
-3
9 additions, 3 deletions
DDG4/python/DDSim/bin/ddsim
with
9 additions
and
3 deletions
DDG4/python/DDSim/bin/ddsim
+
9
−
3
View file @
bd212097
...
...
@@ -9,6 +9,14 @@ Based on M. Frank and F. Gaede runSim.py
"""
from
DDSim.DD4hepSimulation
import
DD4hepSimulation
#------------------------------------------------
from
__future__
import
absolute_import
,
unicode_literals
import
logging
logging
.
basicConfig
(
format
=
'
%(levelname)s: %(message)s
'
)
logger
=
logging
.
getLogger
(
__name__
)
logger
.
setLevel
(
logging
.
INFO
)
if
__name__
==
"
__main__
"
:
RUNNER
=
DD4hepSimulation
()
RUNNER
.
parseOptions
()
...
...
@@ -17,6 +25,4 @@ if __name__ == "__main__":
except
NameError
as
e
:
if
"
global name
"
in
str
(
e
):
globalToSet
=
str
(
e
).
split
(
"'"
)[
1
]
print
"""
ERROR: Unknown global variable, please add
global %s
to your steeringFile
"""
%
globalToSet
logger
.
fatal
(
"
Unknown global variable, please add global %s to your steeringFile
"
%
globalToSet
)
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