ATLAS Offline Software
SGCommitAuditor.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "SGCommitAuditor.h"
6 
8 
9 
11  ISvcLocator* pSvcLocator)
12  :Auditor(name,pSvcLocator),
13  p_sg("StoreGateSvc", name)
14 {
15 
16 }
17 
19 }
20 
21 
24  ATH_CHECK( p_sg.retrieve() );
25 
26  return StatusCode::SUCCESS;
27 }
28 
29 
30 void
31 SGCommitAuditor::after(const std::string& event, const std::string& /*name*/,
32  const EventContext&, const StatusCode&) {
34  return;
35  }
36  p_sg->commitNewDataObjects();
37 }
38 
AthCheckMacros.h
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
LArPulseShapeRunConfig.Execute
Execute
Definition: LArPulseShapeRunConfig.py:62
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
SGCommitAuditor.h
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SGCommitAuditor::~SGCommitAuditor
virtual ~SGCommitAuditor()
Definition: SGCommitAuditor.cxx:18