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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 544 of file pydraw.py.

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

Member Function Documentation

◆ __getattr__()

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

Definition at line 564 of file pydraw.py.

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

◆ loop()

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

Definition at line 554 of file pydraw.py.

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

Member Data Documentation

◆ _app

python.pydraw.AthenaLoopWrapper._app
private

Definition at line 549 of file pydraw.py.

◆ _sg

python.pydraw.AthenaLoopWrapper._sg
private

Definition at line 550 of file pydraw.py.


The documentation for this class was generated from the following file:
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
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