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

Public Member Functions

def __init__ (self, app=None)
 
def loop (self, f, looplo=0, loophi=sys.maxsize)
 
def __getattr__ (self, v)
 

Private Attributes

 _app
 
 _sg
 

Detailed Description

Wrapper for the Athena event loop, supplying a loop method.

This class wraps an application manager object and provides a loop method
that will work with pydraw.

Definition at line 537 of file pydraw.py.

Constructor & Destructor Documentation

◆ __init__()

def python.pydraw.AthenaLoopWrapper.__init__ (   self,
  app = None 
)

Definition at line 543 of file pydraw.py.

543  def __init__ (self, app=None):
544  from AthenaPython import PyAthena #pragma: NO COVER
545  if app is None: #pragma: NO COVER
546  from AthenaCommon.AppMgr import theApp #pragma: NO COVER
547  app = theApp #pragma: NO COVER
548  self._app = app #pragma: NO COVER
549  self._sg = PyAthena.py_svc('StoreGateSvc') #pragma: NO COVER
550  return #pragma: NO COVER
551 
552 

Member Function Documentation

◆ __getattr__()

def python.pydraw.AthenaLoopWrapper.__getattr__ (   self,
  v 
)

Definition at line 563 of file pydraw.py.

563  def __getattr__ (self, v):
564  if not v.startswith('_'): #pragma: NO COVER
565  return self._sg[v] #pragma: NO COVER
566  raise AttributeError() #pragma: NO COVER
567 
568 

◆ loop()

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

Definition at line 553 of file pydraw.py.

553  def loop (self, f, looplo=0, loophi=sys.maxsize):
554  """Call f(i,tree) on rows [looplo, loophi)"""
555  loophi = min (loophi, self._app.size()) #pragma: NO COVER
556  getentry = self._app.seekEvent #pragma: NO COVER
557  for i in range(looplo, loophi): #pragma: NO COVER
558  getentry(i) #pragma: NO COVER
559  f(i, self) #pragma: NO COVER
560  return #pragma: NO COVER
561 
562 

Member Data Documentation

◆ _app

python.pydraw.AthenaLoopWrapper._app
private

Definition at line 548 of file pydraw.py.

◆ _sg

python.pydraw.AthenaLoopWrapper._sg
private

Definition at line 549 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
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
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