ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.pydraw.TreeLoopWrapper Class Reference
Inheritance diagram for python.pydraw.TreeLoopWrapper:
Collaboration diagram for python.pydraw.TreeLoopWrapper:

Public Member Functions

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

Private Attributes

 _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 515 of file pydraw.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 522 of file pydraw.py.

522  def __init__ (self, tree):
523  """Make a wrapper for a tree."""
524  self._tree = tree
525  return
526 

Member Function Documentation

◆ loop()

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

Definition at line 527 of file pydraw.py.

527  def loop (self, f, looplo=0, loophi=sys.maxsize):
528  """Call f(i,tree) on rows [looplo, loophi)"""
529  tree = self._tree
530  loophi = min (loophi, tree.GetEntries())
531  getentry = tree.GetEntry
532  for i in range(looplo, loophi):
533  getentry(i)
534  f(i, tree)
535  return
536 
537 

Member Data Documentation

◆ _tree

python.pydraw.TreeLoopWrapper._tree
private

Definition at line 524 of file pydraw.py.


The documentation for this class was generated from the following file:
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
hist_file_dump.f
f
Definition: hist_file_dump.py:135
python.pydraw.loop
def loop(arg)
Definition: pydraw.py:1242
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18