ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaPython
AthenaPython
PyAthenaAud.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// PyAthenaAud.h
8
// Header file for class PyAthena::Aud
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef ATHENAPYTHON_PYATHENAAUD_H
12
#define ATHENAPYTHON_PYATHENAAUD_H
13
14
// STL includes
15
#include <string>
16
17
// FrameWork includes
18
#include "Gaudi/Auditor.h"
19
#include "
AthenaPython/IPyComponent.h
"
20
#include "
CxxUtils/checker_macros.h
"
21
22
// Forward declaration
23
class
INamedInterface;
24
// Python
25
struct
_object;
26
typedef
_object
PyObject
;
27
28
namespace
PyAthena
{
29
30
class
ATLAS_NOT_THREAD_SAFE
Aud
:
virtual
public
::IPyComponent
,
31
public
Gaudi::Auditor
32
{
33
public
:
34
35
// Copy constructor:
36
38
Aud
(
const
std::string& name, ISvcLocator* svcLocator );
39
41
virtual
~Aud
();
42
44
45
virtual
StatusCode
initialize
()
override
;
46
virtual
StatusCode
sysInitialize
()
override
;
47
virtual
StatusCode
finalize
()
override
;
49
50
55
virtual
const
char
*
typeName
()
const override
;
56
58
59
virtual
void
before
(
const
std::string& evt,
const
std::string& name,
60
const
EventContext& ctx)
override
;
61
62
virtual
void
after
(
const
std::string& evt,
const
std::string& name,
63
const
EventContext& ctx,
const
StatusCode&
sc
)
override
;
65
68
virtual
PyObject
*
self
()
override
{
return
m_self
; }
69
70
protected
:
71
74
virtual
bool
setPyAttr(
PyObject
* pyobj )
override
;
75
77
// Private data:
79
private
:
80
82
Aud
();
83
85
// Protected data:
87
protected
:
88
90
PyObject
*
m_self
;
91
92
};
93
94
// I/O operators
96
98
// Inline methods:
100
101
}
//> end namespace PyAthena
102
103
#endif
//> ATHENAPYTHON_PYATHENAAUD_H
IPyComponent.h
PyObject
_object PyObject
Definition
IPyComponent.h:27
sc
static Double_t sc
Definition
LArPhysWaveHECTool.cxx:37
checker_macros.h
Define macros for attributes used to control the static checker.
IPyComponent
Definition
IPyComponent.h:31
PyAthena::Aud::Aud
Aud(const std::string &name, ISvcLocator *svcLocator)
Constructor with parameters:
Definition
PyAthenaAud.cxx:42
PyAthena::Aud::after
virtual void after(const std::string &evt, const std::string &name, const EventContext &ctx, const StatusCode &sc) override
Definition
PyAthenaAud.cxx:117
PyAthena::Aud::sysInitialize
virtual StatusCode sysInitialize() override
Definition
PyAthenaAud.cxx:67
PyAthena::Aud::self
virtual PyObject * self() override
return associated python object.
Definition
PyAthenaAud.h:68
PyAthena::Aud::m_self
PyObject * m_self
Pointer to self (from the python world).
Definition
PyAthenaAud.h:90
PyAthena::Aud::typeName
virtual const char * typeName() const override
return the std::type_info name of the underlying py-component This is used by concrete implementation...
Definition
PyAthenaAud.cxx:97
PyAthena::Aud::before
virtual void before(const std::string &evt, const std::string &name, const EventContext &ctx) override
Auditor interface
Definition
PyAthenaAud.cxx:108
PyAthena::Aud::finalize
virtual StatusCode finalize() override
Definition
PyAthenaAud.cxx:87
PyAthena::Aud::Aud
Aud()
Default constructor:
PyAthena
Definition
IPyComponent.h:28
PyAthena::ATLAS_NOT_THREAD_SAFE
StatusCode callPyMethod ATLAS_NOT_THREAD_SAFE(PyObject *self, const char *method, PyObject *arg=nullptr)
call the python method
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0