From 29ea2c16b8b9cc897b910db87e0c8d91a7309e5b Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Thu, 19 Apr 2018 14:38:07 +0200
Subject: [PATCH] Move from DD4hep.py to dd4hep.py

---
 COPYING                          | 12 ++++++++++++
 DDRec/python/DDRec.py            |  2 +-
 DDRec/python/dumpDetectorData.py |  6 +++---
 3 files changed, 16 insertions(+), 4 deletions(-)
 create mode 100644 COPYING

diff --git a/COPYING b/COPYING
new file mode 100644
index 000000000..ed8adc02f
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,12 @@
+//==========================================================================
+//  AIDA Detector description implementation (DD4hep)
+//--------------------------------------------------------------------------
+// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
+// All rights reserved.
+//
+// For the licensing terms see $DD4hepINSTALL/LICENSE.
+// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
+//
+// Author     : M.Frank et al.
+//
+//==========================================================================
diff --git a/DDRec/python/DDRec.py b/DDRec/python/DDRec.py
index ada9983e3..1496145cd 100644
--- a/DDRec/python/DDRec.py
+++ b/DDRec/python/DDRec.py
@@ -9,7 +9,7 @@
 #
 #==========================================================================
 import logging
-import DD4hep as core
+import dd4hep as core
 
 def loadDDRec():
   from ROOT import gSystem
diff --git a/DDRec/python/dumpDetectorData.py b/DDRec/python/dumpDetectorData.py
index 25b5af6dc..443a18931 100644
--- a/DDRec/python/dumpDetectorData.py
+++ b/DDRec/python/dumpDetectorData.py
@@ -73,7 +73,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())
@@ -87,12 +87,12 @@ except ImportError,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)
 
 
-- 
GitLab