Definition at line 72 of file PyAthenaEventLoopMgr.py.
◆ __init__()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.__init__ |
( |
|
self | ) |
|
◆ __getattr__()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.__getattr__ |
( |
|
self, |
|
|
|
attr |
|
) |
| |
Definition at line 110 of file PyAthenaEventLoopMgr.py.
110 def __getattr__( self, attr ):
112 for obj
in [ self._evtSeek, self._state, self._evtpro ]:
114 return getattr( obj, attr )
119 return super( PyAthenaEventLoopMgr, self ).__getattr__( attr )
◆ _installServices()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr._installServices |
( |
|
self, |
|
|
|
cppself |
|
) |
| |
|
private |
Definition at line 77 of file PyAthenaEventLoopMgr.py.
77 def _installServices( self, cppself ):
100 self.__dict__[
'_evtSeek' ] = cppyy.bind_object( cppself, cppyy.gbl.IEventSeek )
103 self.__dict__[
'_isvc' ] = PyGaudi.InterfaceCast( cppyy.gbl.IService )( self._evtSeek )
104 self.__dict__[
'_ip' ] = PyGaudi.InterfaceCast( cppyy.gbl.IProperty )( self._evtSeek )
107 self.__dict__[
'_state' ] = PyGaudi.InterfaceCast( cppyy.gbl.IStateful )( self._evtSeek )
108 self.__dict__[
'_evtpro' ] = PyGaudi.InterfaceCast( cppyy.gbl.IEventProcessor )( self._evtSeek )
◆ executeAlgorithms()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.executeAlgorithms |
( |
|
self, |
|
|
|
cppcontext |
|
) |
| |
Definition at line 121 of file PyAthenaEventLoopMgr.py.
121 def executeAlgorithms( self, cppcontext ):
123 from AthenaPython.PyAthena
import py_svc
124 from AthenaPython.PyAthenaComps
import StatusCode
125 appmgr =
py_svc(
'ApplicationMgr',iface=
"IProperty")
126 algmgr =
py_svc(
'ApplicationMgr',iface=
'IAlgManager')
129 ctx = cppyy.bind_object(cppcontext,
"EventContext")
132 for name
in appmgr.getProperty(
"TopAlg").
value():
133 ialg=algmgr.algorithm(name).
get()
134 ialg.execState(ctx).
reset()
135 result = ialg.sysExecute(ctx)
136 if result.isFailure():
137 from AthenaCommon.Logging
import log
as msg
138 msg.error(
"Execution of algorithm %s failed", name )
139 return result.getCode()
140 except KeyboardInterrupt:
141 from AthenaCommon.Logging
import log
as msg
142 msg.critical(
"event loop stopped by user interrupt" )
143 return StatusCode.Failure
145 return StatusCode.Success
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > reset(E &lhs, E rhs)
Convenience function to clear bits in a class enum bitmask.