|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
47 except(
"+++ %s returned %d, not SUCCESS (1). Terminating setup",desc.c_str(), ret);
54 info(
"+++ Worker:%ld Build PYTHON Worker %s....",
62 info(
"+++ Build PYTHON Master [id:%ld] %s ....",
bool m_needsControl
Default property: Flag to create control instance.
#define DECLARE_GEANT4ACTION(name)
Plugin defintion to create Geant4Action objects.
bool isValid() const
Check if call is set.
void info(const char *fmt,...) const
Support of info messages.
void except(const char *fmt,...) const
Support of exceptions: Print fatal message and throw runtime_error.
Base class to initialize a multi-threaded or single threaded Geant4 application.
void set(PyObject *callable, PyObject *args)
Set the callback structures for callbacks with arguments.
Base class to initialize a multi-threaded or single threaded Geant4 application.
Base class to initialize a multi-threaded or single threaded Geant4 application.
void setMasterSetup(PyObject *callable, PyObject *args)
Set the Detector initialization command.
RETURN execute() const
Execute command in the python interpreter.
Geant4PythonCall m_masterSetup
Master initialization command. Default: empty.
Geant4PythonInitialization(Geant4Context *c, const std::string &nam)
Standard constructor.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
void exec(const std::string &desc, const Geant4PythonCall &cmd) const
Execute command in the python interpreter.
virtual void build() const
Callback function to build setup for the MT worker thread.
Generic context to extend user, run and event information.
virtual void buildMaster() const
Callback function to build setup for the MT master thread.
void setWorkerSetup(PyObject *callable, PyObject *args)
Set the field initialization command.
Geant4Context * context() const
Access the context.
Geant4PythonCall m_workerSetup
Worker initialization command. Default: empty.