From 6c32cc16f41fede7439e2653db3c47b383bc76af Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Thu, 1 Mar 2018 13:21:03 +0100 Subject: [PATCH] Add ROOT/python dictionaries to DDRec --- DDRec/python/DDRec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DDRec/python/DDRec.py b/DDRec/python/DDRec.py index a4fe23ecb..5c4caf685 100644 --- a/DDRec/python/DDRec.py +++ b/DDRec/python/DDRec.py @@ -17,7 +17,8 @@ def loadDDRec(): if result < 0: raise Exception('DDG4.py: Failed to load the DDG4 library libDDRec: '+gSystem.GetErrorStr()) from ROOT import dd4hep as module - return module + core.rec = module.rec + return module.rec # We are nearly there .... name_space = __import__(__name__) @@ -30,8 +31,7 @@ def import_namespace_item(ns,nam): #--------------------------------------------------------------------------- # try: - dd4hep = loadDDRec() - rec = dd4hep.rec + rec = loadDDRec() except Exception as X: logging.info('+--%-100s--+',100*'-') logging.info('| %-100s |','Failed to load DDRec library:') -- GitLab