Follow-up from "Cleanup submission helper imports"
The following discussion from !398 (merged) should be addressed:
-
@kolehman started a discussion: (+1 comment) @cburgard: This line causes a crash, because the
import ROOT
was removed in the beginning of the file. Of course, I could add aimport ROOT
at this stage, but I'm not sure if this is what you had intended?For completeness, the traceback and error
Traceback (most recent call last): File "/home/kolehman/HWW/HWWAnalysis/HWWAnalysisCode/share/visualize.py", line 81, in <module> config = common.getConfigOptions(parser.parse_args()) File "/home/kolehman/HWW/HWWAnalysis/build/x86_64-centos6-gcc62-opt/python/CommonAnalysisHelpers/common.py", line 154, in getConfigOptions readConfigOptionsRecursively(configFiles, readconfig, section) File "/home/kolehman/HWW/HWWAnalysis/build/x86_64-centos6-gcc62-opt/python/CommonAnalysisHelpers/common.py", line 89, in readConfigOptionsRecursively if isinstance(configObject, (list,ROOT.vector('string'),ROOT.vector('TString'))): NameError: global name 'ROOT' is not defined