 |
DD4hep
1.37.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
18 #include <TPyReturn.h>
24 : m_callable(0), m_arguments(0)
49 namespace dd4hep {
namespace sim {
55 return (ReturnType)ret;
62 return (ReturnType)ret;
69 return (ReturnType)ret;
71 #define INSTANTIATE(X) \
72 template X Geant4PythonCall::execute<X>() const; \
73 template X Geant4PythonCall::execute<X>(PyObject* method) const; \
74 template X Geant4PythonCall::execute<X>(PyObject* method, PyObject* args) const
Geant4PythonCall()
Standard constructor.
ReturnType execute() const
Execute command in the python interpreter.
static void assignObject(PyObject *&obj, PyObject *new_obj)
Release python object.
static void releaseObject(PyObject *&obj)
Release python object.
void set(PyObject *callable, PyObject *args)
Set the callback structures for callbacks with arguments.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
static DDPython instance()
Object instantiator.
PyObject * m_callable
Python callable reference.
Namespace for the AIDA detector description toolkit.
PyObject * m_arguments
Python arguments object.
virtual ~Geant4PythonCall()
Default destructor.