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

Move from DD4hep.py to dd4hep.py

parent e0d08576
Branches
No related tags found
No related merge requests found
COPYING 0 → 100644
//==========================================================================
// 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.
//
//==========================================================================
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# #
#========================================================================== #==========================================================================
import logging import logging
import DD4hep as core import dd4hep as core
def loadDDRec(): def loadDDRec():
from ROOT import gSystem from ROOT import gSystem
......
...@@ -73,7 +73,7 @@ except ImportError,X: ...@@ -73,7 +73,7 @@ except ImportError,X:
sys.exit(errno.ENOENT) sys.exit(errno.ENOENT)
try: try:
import DD4hep import dd4hep
except ImportError,X: except ImportError,X:
logging.error('dd4hep python interface not accessible: %s',str(X)) logging.error('dd4hep python interface not accessible: %s',str(X))
logging.error("%s",parser.format_help()) logging.error("%s",parser.format_help())
...@@ -87,12 +87,12 @@ except ImportError,X: ...@@ -87,12 +87,12 @@ except ImportError,X:
sys.exit(errno.ENOENT) 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*'=') 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) description.fromXML(opts.compact)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment