11#ifndef ATHENAPYTHON_PYATHENAAUD_H
12#define ATHENAPYTHON_PYATHENAAUD_H
18#include "Gaudi/Auditor.h"
38 Aud(
const std::string& name, ISvcLocator* svcLocator );
47 virtual StatusCode
finalize()
override;
55 virtual const char*
typeName()
const override;
59 virtual void before(
const std::string& evt,
const std::string& name,
60 const EventContext& ctx)
override;
62 virtual void after(
const std::string& evt,
const std::string& name,
63 const EventContext& ctx,
const StatusCode&
sc)
override;
74 virtual bool setPyAttr(
PyObject* pyobj )
override;
Define macros for attributes used to control the static checker.
Aud(const std::string &name, ISvcLocator *svcLocator)
Constructor with parameters:
virtual void after(const std::string &evt, const std::string &name, const EventContext &ctx, const StatusCode &sc) override
virtual StatusCode sysInitialize() override
virtual PyObject * self() override
return associated python object.
PyObject * m_self
Pointer to self (from the python world)
virtual const char * typeName() const override
return the std::type_info name of the underlying py-component This is used by concrete implementation...
virtual void before(const std::string &evt, const std::string &name, const EventContext &ctx) override
Auditor interface
virtual StatusCode finalize() override
Aud()
Default constructor:
StatusCode callPyMethod ATLAS_NOT_THREAD_SAFE(PyObject *self, const char *method, PyObject *arg=nullptr)
call the python method