Skip to content
Snippets Groups Projects
Commit bd212097 authored by Marko Petric's avatar Marko Petric Committed by Andre Sailer
Browse files

fix ddsim executable

parent c37b02cc
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment