11#include <boost/python/call_method.hpp>
12#include <framework/core/Module.h>
56 boost::python::call_method<void>(
m_self,
"initialize");
61 boost::python::call_method<void>(
m_self,
"beginRun");
64 virtual void event() override final
66 boost::python::call_method<void>(
m_self,
"event");
71 boost::python::call_method<void>(
m_self,
"endRun");
76 boost::python::call_method<void>(
m_self,
"terminate");
virtual void event()
This method is the core of the module.
virtual void initialize()
Initialize the Module.
virtual void beginRun()
Called when entering a new run.
virtual void endRun()
This method is called if the current run ends.
void setName(const std::string &name)
Set the name of the module.
void setType(const std::string &type)
Set the module type.
virtual void terminate()
This method is called at the end of the event processing.
Python wrapper for Belle2::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...
virtual void endRun() override final
This method is called if the current run ends.
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 def_terminate() override final
Wrapper method for the virtual function terminate() that has the implementation to be used in a call ...
PyModule(PyObject *p, const Module &m)
copy constructor
virtual void initialize() override final
Initialize the Module.
virtual void def_initialize() override final
default implementation used when Python module doesn't supply its own
PyObject * m_self
the actual python module
virtual void terminate() override final
This method is called at the end of the event processing.
PyModule(PyObject *p)
constructor
virtual void beginRun() override final
Called when entering a new run.
virtual void def_endRun() override final
This method can receive that the current run ends as a call from the Python side.
virtual void event() override final
This method is the core of the module.
Abstract base class for different kinds of events.