ATLAS Offline Software
PyAthenaAud.h
Go to the documentation of this file.
1 
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"
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 
91 
92 };
93 
94 // I/O operators
96 
98 // Inline methods:
100 
101 } //> end namespace PyAthena
102 
103 #endif //> ATHENAPYTHON_PYATHENAAUD_H
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
initialize
void initialize()
Definition: run_EoverP.cxx:894
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
PyAthena::Aud::Aud
Aud()
Default constructor:
PyAthena::Aud
Definition: PyAthenaAud.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IPyComponent
Definition: IPyComponent.h:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
PyObject
_object PyObject
Definition: PyAthenaAud.h:25
IPyComponent.h
PyAthena
Definition: IPyComponent.h:28
ReadCalibFromCool.typeName
typeName
Definition: ReadCalibFromCool.py:477
PyAthena::Aud::m_self
PyObject * m_self
Pointer to self (from the python world)
Definition: PyAthenaAud.h:90
checker_macros.h
Define macros for attributes used to control the static checker.
PyObject
_object PyObject
Definition: IPyComponent.h:26
PyAthena::ATLAS_NOT_THREAD_SAFE
StatusCode callPyMethod ATLAS_NOT_THREAD_SAFE(PyObject *self, const char *method, PyObject *arg=nullptr)
call the python method