From 5c48eb5df63e682fda29c63449dda58d53fa9e44 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Thu, 5 Apr 2018 21:11:33 +0200
Subject: [PATCH] Fix dd4hep units as discussed in the meeting.

---
 DDG4/python/checkGeometry.py | 6 +++---
 DDG4/python/checkOverlaps.py | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/DDG4/python/checkGeometry.py b/DDG4/python/checkGeometry.py
index 21071fddf..c296c012d 100755
--- a/DDG4/python/checkGeometry.py
+++ b/DDG4/python/checkGeometry.py
@@ -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)
diff --git a/DDG4/python/checkOverlaps.py b/DDG4/python/checkOverlaps.py
index bc366ef24..a6a745839 100755
--- a/DDG4/python/checkOverlaps.py
+++ b/DDG4/python/checkOverlaps.py
@@ -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)
-- 
GitLab