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

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 535 of file pydraw.py.

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

Member Function Documentation

◆ __getattr__()

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

Definition at line 555 of file pydraw.py.

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

◆ loop()

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

Definition at line 545 of file pydraw.py.

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

Member Data Documentation

◆ _app

python.pydraw.AthenaLoopWrapper._app = app
protected

Definition at line 540 of file pydraw.py.

◆ _sg

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

Definition at line 541 of file pydraw.py.


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