Skip to content
Snippets Groups Projects
Commit 5c48eb5d authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Fix dd4hep units as discussed in the meeting.

parent ef92f523
No related branches found
No related tags found
No related merge requests found
......@@ -64,14 +64,14 @@ except ImportError,X:
sys.exit(errno.ENOENT)
try:
import DD4hep
import dd4hep
except ImportError,X:
logging.error('dd4hep python interface not accessible: %s',str(X))
sys.exit(errno.ENOENT)
DD4hep.setPrintLevel(DD4hep.OutputLevel.ERROR)
dd4hep.setPrintLevel(dd4hep.OutputLevel.ERROR)
logging.info('+++%s\n+++ Loading compact geometry:%s\n+++%s',120*'=',opts.compact,120*'=')
description = DD4hep.Detector.getInstance()
description = dd4hep.Detector.getInstance()
description.fromXML(opts.compact)
opts.num_tracks = int(opts.num_tracks)
opts.vx = float(opts.vx)
......
......@@ -49,7 +49,7 @@ except ImportError,X:
sys.exit(errno.ENOENT)
try:
import DD4hep
import dd4hep
except ImportError,X:
logging.error('dd4hep python interface not accessible: %s',str(X))
logging.error("%s",parser.format_help())
......@@ -57,9 +57,9 @@ except ImportError,X:
#
#
opts.tolerance = float(opts.tolerance)
DD4hep.setPrintLevel(DD4hep.OutputLevel.ERROR)
dd4hep.setPrintLevel(dd4hep.OutputLevel.ERROR)
logging.info('+++%s\n+++ Loading compact geometry:%s\n+++%s',120*'=',opts.compact,120*'=')
description = DD4hep.Detector.getInstance()
description = dd4hep.Detector.getInstance()
description.fromXML(opts.compact)
logging.info('+++%s\n+++ Checking overlaps of geometry:%s tolerance:%f option:%s\n+++%s',120*'=',opts.compact,opts.tolerance,opts.option,120*'=')
description.manager().CheckOverlaps(opts.tolerance,opts.option)
......
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