11 from __future__
import absolute_import, unicode_literals
15 logger = logging.getLogger(__name__)
19 from ROOT
import gSystem
20 result = gSystem.Load(
"libDDRec")
22 raise Exception(
'DDG4.py: Failed to load the DDG4 library libDDRec: ' + gSystem.GetErrorStr())
23 from ROOT
import dd4hep
as module
29 name_space = __import__(__name__)
33 scope = getattr(name_space, ns)
34 attr = getattr(scope, nam)
35 setattr(name_space, nam, attr)
43 except Exception
as X:
44 logger.error(
'+--%-100s--+', 100 *
'-')
45 logger.error(
'| %-100s |',
'Failed to load DDRec library:')
46 logger.error(
'| %-100s |', str(X))
47 logger.error(
'+--%-100s--+', 100 *
'-')
101 std_list_ISurface = core.std_list(str(
'ISurface*'))
102 std_list_VolSurface = core.std_list(str(
'VolSurface'))
def import_namespace_item