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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 521 of file pydraw.py.

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

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

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

Member Data Documentation

◆ _tree

python.pydraw.TreeLoopWrapper._tree
private

Definition at line 523 of file pydraw.py.


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