The Gaudi Framework  master (da3d77e1)
AlgContextAuditor.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIAUD_ALGCONTEXTAUDITOR_H
12 #define GAUDIAUD_ALGCONTEXTAUDITOR_H
13 // ============================================================================
14 // Include files
15 // ============================================================================
16 // GaudiKernel
17 // ============================================================================
18 #include <GaudiKernel/Auditor.h>
19 #include <GaudiKernel/IAlgorithm.h>
20 // ============================================================================
21 // Forward declarations
22 // ============================================================================
23 class IAlgContextSvc;
24 // ============================================================================
31 class AlgContextAuditor : public Auditor {
32 public:
33  // IAuditor implementation
34  void beforeInitialize( INamedInterface* a ) override;
35  void afterInitialize( INamedInterface* a ) override;
36  //
37  void beforeExecute( INamedInterface* a ) override;
38  void afterExecute( INamedInterface* a, const StatusCode& s ) override;
39  //
40  void beforeFinalize( INamedInterface* a ) override;
41  void afterFinalize( INamedInterface* a ) override;
42 
43 public:
47  StatusCode initialize() override;
49  StatusCode finalize() override;
50 
51 private:
53  AlgContextAuditor() = delete;
56 
57 private:
60 };
61 
62 // ============================================================================
63 // The END
64 // ============================================================================
65 #endif // GAUDIAUD_ALGCONTEXTAUDITOR_H
std::string
STL class.
gaudirun.s
string s
Definition: gaudirun.py:346
ISvcLocator
Definition: ISvcLocator.h:46
AlgContextAuditor::finalize
StatusCode finalize() override
standard finalization,
Definition: AlgContextAuditor.cpp:65
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:192
AlgContextAuditor::operator=
AlgContextAuditor & operator=(const AlgContextAuditor &)=delete
Auditor
Definition: Auditor.h:43
StatusCode
Definition: StatusCode.h:65
AlgContextAuditor::beforeExecute
void beforeExecute(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:79
AlgContextAuditor::initialize
StatusCode initialize() override
standard initialization,
Definition: AlgContextAuditor.cpp:51
SmartIF< IAlgContextSvc >
AlgContextAuditor::AlgContextAuditor
AlgContextAuditor()=delete
delete the default/copy constructor and assignment
INamedInterface
Definition: INamedInterface.h:25
AlgContextAuditor::m_svc
SmartIF< IAlgContextSvc > m_svc
the pointer to Algorithm Context Service
Definition: AlgContextAuditor.h:59
IAlgContextSvc
Definition: IAlgContextSvc.h:33
AlgContextAuditor::afterInitialize
void afterInitialize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:73
AlgContextAuditor::beforeFinalize
void beforeFinalize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:75
IAlgorithm.h
AlgContextAuditor
Definition: AlgContextAuditor.h:31
AlgContextAuditor::beforeInitialize
void beforeInitialize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:71
AlgContextAuditor::afterExecute
void afterExecute(INamedInterface *a, const StatusCode &s) override
Definition: AlgContextAuditor.cpp:81
AlgContextAuditor::AlgContextAuditor
AlgContextAuditor(const AlgContextAuditor &)=delete
AlgContextAuditor::afterFinalize
void afterFinalize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:77
Auditor.h