ATLAS Offline Software
Control
SGComps
src
SGCommitAuditor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
SGCommitAuditor.h
"
6
7
SGCommitAuditor::SGCommitAuditor
(
const
std::string&
name
,
8
ISvcLocator* pSvcLocator)
9
:Auditor(
name
,pSvcLocator),
10
p_sg(
"StoreGateSvc"
,
name
)
11
{
12
13
}
14
15
SGCommitAuditor::~SGCommitAuditor
() {
16
}
17
18
19
StatusCode
20
SGCommitAuditor::initialize
() {
21
if
(
p_sg
.retrieve().isFailure()) {
22
MsgStream
log
(
msgSvc
() ,
name
() );
23
log
<< MSG::ERROR <<
"Could not retrieve \""
<<
p_sg
.typeAndName()
24
<<
"\""
<<
endmsg
;
25
return
StatusCode::FAILURE;
26
}
27
28
return
StatusCode::SUCCESS;
29
}
30
31
StatusCode
32
SGCommitAuditor::finalize
() {
33
return
StatusCode::SUCCESS;
34
}
35
36
37
38
void
39
SGCommitAuditor::afterExecute
(INamedInterface*
/*alg*/
,
const
StatusCode
&) {
40
p_sg
->commitNewDataObjects();
41
}
42
SGCommitAuditor::SGCommitAuditor
SGCommitAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
SGCommitAuditor.cxx:7
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
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.h
SGCommitAuditor::finalize
virtual StatusCode finalize()
Definition:
SGCommitAuditor.cxx:32
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
SGCommitAuditor::initialize
virtual StatusCode initialize()
Definition:
SGCommitAuditor.cxx:20
SGCommitAuditor::afterExecute
virtual void afterExecute(INamedInterface *alg, const StatusCode &)
Definition:
SGCommitAuditor.cxx:39
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
SGCommitAuditor::~SGCommitAuditor
virtual ~SGCommitAuditor()
Definition:
SGCommitAuditor.cxx:15
Generated on Thu Nov 7 2024 21:25:53 for ATLAS Offline Software by
1.8.18