Definition at line 12 of file PyAthenaEventLoopMgr.py.
◆ __init__()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.__init__ |
( |
|
self | ) |
|
◆ __getattr__()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.__getattr__ |
( |
|
self, |
|
|
|
attr |
|
) |
| |
Definition at line 50 of file PyAthenaEventLoopMgr.py.
50 def __getattr__( self, attr ):
52 for obj
in [ self._evtSeek, self._state, self._evtpro ]:
54 return getattr( obj, attr )
59 return super( PyAthenaEventLoopMgr, self ).__getattr__( attr )
◆ _installServices()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr._installServices |
( |
|
self, |
|
|
|
cppself |
|
) |
| |
|
private |
Definition at line 17 of file PyAthenaEventLoopMgr.py.
17 def _installServices( self, cppself ):
40 self.__dict__[
'_evtSeek' ] = cppyy.bind_object( cppself, cppyy.gbl.IEventSeek )
43 self.__dict__[
'_isvc' ] = PyGaudi.InterfaceCast( cppyy.gbl.IService )( self._evtSeek )
44 self.__dict__[
'_ip' ] = PyGaudi.InterfaceCast( cppyy.gbl.IProperty )( self._evtSeek )
47 self.__dict__[
'_state' ] = PyGaudi.InterfaceCast( cppyy.gbl.IStateful )( self._evtSeek )
48 self.__dict__[
'_evtpro' ] = PyGaudi.InterfaceCast( cppyy.gbl.IEventProcessor )( self._evtSeek )
◆ executeAlgorithms()
def python.PyAthenaEventLoopMgr.PyAthenaEventLoopMgr.executeAlgorithms |
( |
|
self, |
|
|
|
cppcontext |
|
) |
| |
Definition at line 61 of file PyAthenaEventLoopMgr.py.
61 def executeAlgorithms( self, cppcontext ):
63 from AthenaPython.PyAthena
import py_svc
64 from AthenaPython.PyAthenaComps
import StatusCode
65 appmgr =
py_svc(
'ApplicationMgr',iface=
"IProperty")
66 algmgr =
py_svc(
'ApplicationMgr',iface=
'IAlgManager')
69 ctx = cppyy.bind_object(cppcontext,
"EventContext")
72 for name
in appmgr.getProperty(
"TopAlg").
value():
73 ialg=algmgr.algorithm(name).
get()
74 ialg.execState(ctx).
reset()
75 result = ialg.sysExecute(ctx)
76 if result.isFailure():
77 from AthenaCommon.Logging
import log
as msg
78 msg.error(
"Execution of algorithm %s failed", name )
79 return result.getCode()
80 except KeyboardInterrupt:
81 from AthenaCommon.Logging
import log
as msg
82 msg.critical(
"event loop stopped by user interrupt" )
83 return StatusCode.Failure
85 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.