11#ifndef ATHENAPYTHON_PYCOMPONENTMGR_H
12#define ATHENAPYTHON_PYCOMPONENTMGR_H
16#include <unordered_map>
19#include "GaudiKernel/ServiceHandle.h"
36 :
public extends<AthService, IPyComponentMgr>
48 PyComponentMgr( const std::string& name, ISvcLocator* pSvcLocator );
56 virtual StatusCode
finalize() override;
Define macros for attributes used to control the static checker.
PyComponents_t m_components
A fast look-up hash-map for python components { 'name' : PyObject* } PyObject* is NULL if not yet ins...
virtual StatusCode finalize() override
virtual StatusCode initialize() override
Gaudi Service Implementation.
virtual PyObject * pyObject(IPyComponent *component) override
Retrieve a python object from the python world.
std::unordered_map< std::string, PyObject * > PyComponents_t
PyComponentMgr(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
PyObject * m_dict
The dictionary of python components' description It should be of the form: { 'name' : { 'package' : "...
StatusCode callPyMethod ATLAS_NOT_THREAD_SAFE(PyObject *self, const char *method, PyObject *arg=nullptr)
call the python method