3 """Functions to work around PyROOT bugs for accessing DataVector.
6 :contact: snyder@bnl.gov
8 Importing this module will automatically apply workarounds
9 for known PyROOT issues.
12 __docformat__ =
"restructuredtext en"
23 """Additional pythonizations for TTree."""
24 ROOT.RootUtils.PyROOTTTreePatch.Initialize (ROOT.TTree,
30 """Enable pickling of object proxy's"""
32 ROOT.RootUtils.PyROOTPickle.Initialize (libPyROOT, ROOT.ObjectProxy)
39 cl = ROOT.gROOT.GetListOfClasses().FindObject(cname)
41 if cl.IsLoaded()
and cl.HasDictionary():
return cl
43 if ROOT.gInterpreter.GetClassSharedLibs (cname):
44 cl = ROOT.TClass.GetClass (cname)
45 if cl.HasDictionary():
return cl
51 if cppyy.gbl.gSystem.FindDynamicLibrary(
'libGaudiKernel',
True ):
52 cppyy.load_library(
'libGaudiKernel' )
55 ROOT.RootUtils.PyLogger
56 ROOT.RootUtils.PyROOTTypePatch.initialize()