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

Public Member Functions

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

Protected Attributes

 _app = app
 _sg = PyAthena.py_svc('StoreGateSvc')

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 538 of file pydraw.py.

538 def __init__ (self, app=None):
539 from AthenaPython import PyAthena #pragma: NO COVER
540 if app is None: #pragma: NO COVER
541 from AthenaCommon.AppMgr import theApp #pragma: NO COVER
542 app = theApp #pragma: NO COVER
543 self._app = app #pragma: NO COVER
544 self._sg = PyAthena.py_svc('StoreGateSvc') #pragma: NO COVER
545 return #pragma: NO COVER
546
547

Member Function Documentation

◆ __getattr__()

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

Definition at line 558 of file pydraw.py.

558 def __getattr__ (self, v):
559 if not v.startswith('_'): #pragma: NO COVER
560 return self._sg[v] #pragma: NO COVER
561 raise AttributeError() #pragma: NO COVER
562
563

◆ loop()

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

Definition at line 548 of file pydraw.py.

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

Member Data Documentation

◆ _app

python.pydraw.AthenaLoopWrapper._app = app
protected

Definition at line 543 of file pydraw.py.

◆ _sg

python.pydraw.AthenaLoopWrapper._sg = PyAthena.py_svc('StoreGateSvc')
protected

Definition at line 544 of file pydraw.py.


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