 |
Belle II Software
release-05-02-19
|
13 #include <boost/python/call_method.hpp>
14 #include <framework/core/Module.h>
31 class PyModule :
public Module {
58 boost::python::call_method<void>(
m_self,
"initialize");
61 virtual void beginRun() override final
63 boost::python::call_method<void>(
m_self,
"beginRun");
66 virtual void event() override final
68 boost::python::call_method<void>(
m_self,
"event");
71 virtual void endRun() override final
73 boost::python::call_method<void>(
m_self,
"endRun");
78 boost::python::call_method<void>(
m_self,
"terminate");
virtual void terminate()
This method is called at the end of the event processing.
PyModule(PyObject *p)
constructor
virtual void def_endRun() override final
This method can receive that the current run ends as a call from the Python side.
virtual void beginRun() override final
Called when entering a new run.
virtual void event()
This method is the core of the module.
virtual void def_beginRun() override final
Wrapper method for the virtual function beginRun() that has the implementation to be used in a call f...
virtual void endRun() override final
This method is called if the current run ends.
virtual void initialize() override final
Initialize the Module.
virtual void def_terminate() override final
Wrapper method for the virtual function terminate() that has the implementation to be used in a call ...
Abstract base class for different kinds of events.
virtual void endRun()
This method is called if the current run ends.
virtual void def_initialize() override final
default implementation used when Python module doesn't supply its own
void setType(const std::string &type)
Set the module type.
virtual void beginRun()
Called when entering a new run.
virtual void initialize()
Initialize the Module.
virtual void terminate() override final
This method is called at the end of the event processing.
virtual void event() override final
This method is the core of the module.
void setName(const std::string &name)
Set the name of the module.
PyObject * m_self
the actual python module
virtual void def_event() override final
Wrapper method for the virtual function event() that has the implementation to be used in a call from...