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

Constructor & Destructor Documentation

◆ __init__()

def 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__()

def 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()

def 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
private

Definition at line 540 of file pydraw.py.

◆ _sg

python.pydraw.AthenaLoopWrapper._sg
private

Definition at line 541 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:1233