ATLAS Offline Software
Loading...
Searching...
No Matches
python.pydraw.TreeLoopWrapper Class Reference
Inheritance diagram for python.pydraw.TreeLoopWrapper:
Collaboration diagram for python.pydraw.TreeLoopWrapper:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, tree)
 loop (self, f, looplo=0, loophi=sys.maxsize)

Protected Attributes

 _tree = tree

Detailed Description

Wrapper for TTree, supplying a loop method.

This class wraps a TTree class and provides a loop method
that will work with pydraw.

Definition at line 506 of file pydraw.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.pydraw.TreeLoopWrapper.__init__ ( self,
tree )
Make a wrapper for a tree.

Definition at line 513 of file pydraw.py.

513 def __init__ (self, tree):
514 """Make a wrapper for a tree."""
515 self._tree = tree
516 return
517

Member Function Documentation

◆ loop()

python.pydraw.TreeLoopWrapper.loop ( self,
f,
looplo = 0,
loophi = sys.maxsize )
Call f(i,tree) on rows [looplo, loophi)

Definition at line 518 of file pydraw.py.

518 def loop (self, f, looplo=0, loophi=sys.maxsize):
519 """Call f(i,tree) on rows [looplo, loophi)"""
520 tree = self._tree
521 loophi = min (loophi, tree.GetEntries())
522 getentry = tree.GetEntry
523 for i in range(looplo, loophi):
524 getentry(i)
525 f(i, tree)
526 return
527
528

Member Data Documentation

◆ _tree

python.pydraw.TreeLoopWrapper._tree = tree
protected

Definition at line 515 of file pydraw.py.


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