1 #ifndef GAUDIPYTHON_ALGORITHM_H
2 #define GAUDIPYTHON_ALGORITHM_H
12 #include "GaudiKernel/Algorithm.h"
13 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiPython/GaudiPython.h"
41 const std::string&
name ) ;
61 template <
class ALGORITHM>
73 const std::string&
name )
89 ~
PyAlg()
override =
default;
91 PyObject*
_obj()
const {
return m_self ; }
137 #endif // GAUDIPYTHON_ALGORITHM_H
virtual StatusCode initialize_()
StatusCode beginRun() override
StatusCode endRun() override
virtual IAlgorithm * ialgorithm()
virtual StatusCode finalize_()
PyObject * m_self
"shadow" python class
StatusCode initialize() override
StatusCode execute() override
PyObject * _obj() const
get the object
GAUDI_API ISvcLocator * svcLocator()
StatusCode stop() override
This class is used for returning status codes from appropriate routines.
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
general class to embed the existing algorithm/base class into the python
GAUDI_API StatusCode call_python_method(PyObject *self, const char *method)
call the python method
virtual IProperty * iproperty()
The IAlgorithm is the interface implemented by the Algorithm base class.
StatusCode start() override
GaudiPython.h GaudiPython/GaudiPython.h.
Base class from which all concrete algorithm classes should be derived.
StatusCode finalize() override
Python Algorithm base class.
The IProperty is the basic interface for all components which have properties that can be set or get...