GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
go4py.internals.expmem.ExpMem Class Reference
+ Inheritance diagram for go4py.internals.expmem.ExpMem:

Public Member Functions

 __init__ (self, filename, rootfolder="Analysis")
 
 MatchingObjects (self, expr="*", folder=None)
 
 Objects (self, folder=None)
 
 tree (self, folder=None, indent=1)
 

Data Fields

 file = ROOT.TFile(filename)
 
 root = f.GetDirectory(rootfolder)
 

Detailed Description

Wraps exported Go4 memory .root-files

Definition at line 6 of file expmem.py.

Constructor & Destructor Documentation

◆ __init__()

go4py.internals.expmem.ExpMem.__init__ ( self,
filename,
rootfolder = "Analysis" )
Open the TFile filename as file and
get the TDirectory rootfolder as root
For rootfolder, "Workspace" might be desired besides the default
An unset rootfolder, "*", and "/" all mean the actual root of the file

Definition at line 11 of file expmem.py.

Member Function Documentation

◆ MatchingObjects()

go4py.internals.expmem.ExpMem.MatchingObjects ( self,
expr = "*",
folder = None )
Iterate over Objects() that match expr

Definition at line 54 of file expmem.py.

References Objects().

◆ Objects()

go4py.internals.expmem.ExpMem.Objects ( self,
folder = None )
Iterate over all objects in the opened .root-file
folder can be a string (relative to rootfolder) or a TDirectory

Definition at line 28 of file expmem.py.

References Objects(), and root.

Referenced by MatchingObjects(), and Objects().

◆ tree()

go4py.internals.expmem.ExpMem.tree ( self,
folder = None,
indent = 1 )
Recursively print the object/folder tree of the opened .root-file

Definition at line 64 of file expmem.py.

References root, and tree().

Referenced by tree().

Field Documentation

◆ file

go4py.internals.expmem.ExpMem.file = ROOT.TFile(filename)

Definition at line 21 of file expmem.py.

◆ root

go4py.internals.expmem.ExpMem.root = f.GetDirectory(rootfolder)

Definition at line 22 of file expmem.py.

Referenced by Objects(), and tree().


The documentation for this class was generated from the following file: