ATLAS Offline Software
Functions | Variables
python.PyROOTFixes Namespace Reference

Functions

def fix_method (clname, methname)
 
def enable_tree_fixes ()
 
def enable_pickling ()
 
def _getClassIfDictionaryExists (cname)
 

Variables

string __docformat__ = "restructuredtext en"
 

Function Documentation

◆ _getClassIfDictionaryExists()

def python.PyROOTFixes._getClassIfDictionaryExists (   cname)
private

Definition at line 38 of file PyROOTFixes.py.

38 def _getClassIfDictionaryExists (cname):
39  cl = ROOT.gROOT.GetListOfClasses().FindObject(cname)
40  if cl:
41  if cl.IsLoaded() and cl.HasDictionary(): return cl
42  return None
43  if ROOT.gInterpreter.GetClassSharedLibs (cname):
44  cl = ROOT.TClass.GetClass (cname)
45  if cl.HasDictionary(): return cl
46  return None
47 
48 # Force-load the main Gaudi library if it's available. If this package's library
49 # is loaded before Gaudi, the application gets into a weird state. Hopefully we
50 # will be able to remove this with future compiler versions. (GCC 10?...)

◆ enable_pickling()

def python.PyROOTFixes.enable_pickling ( )
Enable pickling of object proxy's

Definition at line 29 of file PyROOTFixes.py.

29 def enable_pickling ():
30  """Enable pickling of object proxy's"""
31  import libPyROOT
32  ROOT.RootUtils.PyROOTPickle.Initialize (libPyROOT, ROOT.ObjectProxy)
33  del libPyROOT
34  return
35 
36 
37 # Convert from class name to TClass; try to avoid autoparsing.

◆ enable_tree_fixes()

def python.PyROOTFixes.enable_tree_fixes ( )
Additional pythonizations for TTree.

Definition at line 22 of file PyROOTFixes.py.

22 def enable_tree_fixes ():
23  """Additional pythonizations for TTree."""
24  ROOT.RootUtils.PyROOTTTreePatch.Initialize (ROOT.TTree,
25  ROOT.TChain,
26  ROOT.TBranch)
27  return
28 

◆ fix_method()

def python.PyROOTFixes.fix_method (   clname,
  methname 
)

Definition at line 18 of file PyROOTFixes.py.

18 def fix_method (clname, methname):
19  # Now only a stub.
20  return
21 

Variable Documentation

◆ __docformat__

string python.PyROOTFixes.__docformat__ = "restructuredtext en"
private

Definition at line 12 of file PyROOTFixes.py.

python.PyROOTFixes.enable_pickling
def enable_pickling()
Definition: PyROOTFixes.py:29
python.PyROOTFixes._getClassIfDictionaryExists
def _getClassIfDictionaryExists(cname)
Definition: PyROOTFixes.py:38
python.PyROOTFixes.enable_tree_fixes
def enable_tree_fixes()
Definition: PyROOTFixes.py:22
python.PyROOTFixes.fix_method
def fix_method(clname, methname)
Definition: PyROOTFixes.py:18