ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SGCommitAuditor Class Reference

#include <SGCommitAuditor.h>

Inheritance diagram for SGCommitAuditor:
Collaboration diagram for SGCommitAuditor:

Public Member Functions

 SGCommitAuditor (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~SGCommitAuditor ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual void afterExecute (INamedInterface *alg, const StatusCode &)
 

Private Attributes

ServiceHandle< IHiveStoreMgrp_sg
 

Detailed Description

Definition at line 25 of file SGCommitAuditor.h.

Constructor & Destructor Documentation

◆ SGCommitAuditor()

SGCommitAuditor::SGCommitAuditor ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 7 of file SGCommitAuditor.cxx.

9  :Auditor(name,pSvcLocator),
10  p_sg("StoreGateSvc", name)
11 {
12 
13 }

◆ ~SGCommitAuditor()

SGCommitAuditor::~SGCommitAuditor ( )
virtual

Definition at line 15 of file SGCommitAuditor.cxx.

15  {
16 }

Member Function Documentation

◆ afterExecute()

void SGCommitAuditor::afterExecute ( INamedInterface *  alg,
const StatusCode &   
)
virtual

Definition at line 39 of file SGCommitAuditor.cxx.

39  {
40  p_sg->commitNewDataObjects();
41 }

◆ finalize()

StatusCode SGCommitAuditor::finalize ( )
virtual

Definition at line 32 of file SGCommitAuditor.cxx.

32  {
33  return StatusCode::SUCCESS;
34 }

◆ initialize()

StatusCode SGCommitAuditor::initialize ( )
virtual

Definition at line 20 of file SGCommitAuditor.cxx.

20  {
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 }

Member Data Documentation

◆ p_sg

ServiceHandle<IHiveStoreMgr> SGCommitAuditor::p_sg
private

Definition at line 38 of file SGCommitAuditor.h.


The documentation for this class was generated from the following files:
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
SGCommitAuditor::p_sg
ServiceHandle< IHiveStoreMgr > p_sg
Definition: SGCommitAuditor.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20