ATLAS Offline Software
SGCommitAuditor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SGTOOLS_SGCOMMITAUDITOR_H
6 #define SGTOOLS_SGCOMMITAUDITOR_H
7 
8 #include "Gaudi/Auditor.h"
9 #include "Gaudi/IAuditor.h"
10 #include "GaudiKernel/ServiceHandle.h"
12 
14 //
15 // SGCommitAuditor
16 //
17 // Auditor for use with GaudiHive, causes DataObjects recorded during
18 // the preceeding Algorithm's execute method to be made known to the
19 // WhiteBoard
20 //
21 // Author: C. Leggett
22 // Date: 2015-02-03
24 
25 class SGCommitAuditor: public Gaudi::Auditor {
26 
27 public:
28  SGCommitAuditor(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual ~SGCommitAuditor();
30 
31  virtual StatusCode initialize() override;
32 
33  virtual void after(const std::string& event, const std::string& name,
34  const EventContext&, const StatusCode&) override;
35 
36 private:
37 
39 
40 };
41 
42 #endif
SGCommitAuditor::after
virtual void after(const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override
Definition: SGCommitAuditor.cxx:31
SGCommitAuditor::SGCommitAuditor
SGCommitAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SGCommitAuditor.cxx:10
SGCommitAuditor
Definition: SGCommitAuditor.h:25
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SGCommitAuditor::p_sg
ServiceHandle< IHiveStoreMgr > p_sg
Definition: SGCommitAuditor.h:38
SGCommitAuditor::initialize
virtual StatusCode initialize() override
Definition: SGCommitAuditor.cxx:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
IHiveStoreMgr.h
SGCommitAuditor::~SGCommitAuditor
virtual ~SGCommitAuditor()
Definition: SGCommitAuditor.cxx:18
ServiceHandle< IHiveStoreMgr >