ATLAS Offline Software
Control
AthenaPython
AthenaPython
PyAthenaSvc.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// PyAthenaSvc.h
8
// Header file for class PyAthena::Svc
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef ATHENAPYTHON_PYATHENASVC_H
12
#define ATHENAPYTHON_PYATHENASVC_H
13
14
// STL includes
15
#include <string>
16
17
// FrameWork includes
18
#include "GaudiKernel/IIncidentListener.h"
19
#include "
AthenaBaseComps/AthService.h
"
20
#include "
AthenaPython/IPyComponent.h
"
21
#include "
CxxUtils/checker_macros.h
"
22
23
// Forward declaration
24
// Python
25
struct
_object;
26
typedef
_object
PyObject
;
27
28
namespace
PyAthena
{
29
30
typedef ::AthService
SvcBase_t
;
31
class
ATLAS_NOT_THREAD_SAFE
Svc
32
:
public
extends<SvcBase_t, ::IPyComponent, ::IIncidentListener>
33
{
34
36
// Public methods:
38
public
:
39
40
// Copy constructor:
41
43
Svc
(
const
std::string&
name
, ISvcLocator* svcLocator );
44
46
virtual
~
Svc
();
47
49
50
virtual
StatusCode
initialize
()
override
;
51
virtual
StatusCode
reinitialize()
override
;
52
virtual
StatusCode
start
()
override
;
53
virtual
StatusCode
stop
()
override
;
54
virtual
StatusCode
finalize
()
override
;
56
57
virtual
StatusCode
sysInitialize()
override
;
58
59
64
const
char
*
typeName
()
const override
;
65
68
virtual
PyObject
*
self
()
override
{
return
m_self; }
69
72
virtual
void
handle(
const
Incident& incident )
override
;
73
74
75
protected
:
76
79
virtual
bool
setPyAttr(
PyObject
* pyobj )
override
;
80
81
82
private
:
84
Svc
() =
delete
;
85
86
protected
:
87
89
PyObject
*
m_self
;
90
91
};
92
93
}
//> end namespace PyAthena
94
95
#endif //> ATHENAPYTHON_PYATHENASVC_H
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition:
PyTestsLib.py:50
PyAthena::SvcBase_t
::AthService SvcBase_t
Definition:
PyAthenaSvc.h:30
initialize
void initialize()
Definition:
run_EoverP.cxx:894
mergePhysValFiles.start
start
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
PixelModuleFeMask_create_db.stop
int stop
Definition:
PixelModuleFeMask_create_db.py:76
PyAthena::Svc::Svc
Svc()=delete
Default constructor:
PyAthena::Svc
Definition:
PyAthenaSvc.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PyAthena::Svc::m_self
PyObject * m_self
Pointer to self (from the python world)
Definition:
PyAthenaSvc.h:89
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
IPyComponent.h
PyAthena
Definition:
IPyComponent.h:28
PyObject
_object PyObject
Definition:
PyAthenaSvc.h:25
AthService.h
ReadCalibFromCool.typeName
typeName
Definition:
ReadCalibFromCool.py:477
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
Generated on Wed Jan 8 2025 21:15:52 for ATLAS Offline Software by
1.8.18