ATLAS Offline Software
LArG4ShowerLibSvcTest.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 LArG4ShowerLibSvcTest::LArG4ShowerLibSvcTest (const std::string& name, ISvcLocator* pSvcLocator)
8  : AthAlgorithm(name, pSvcLocator),
9  m_showerLibSvc("LArG4ShowerLibSvc",name)
10 {
11  declareProperty("LArG4ShowerLibSvc",m_showerLibSvc);
12 }
13 
15 {
16 }
17 
19 {
20 
21  msg(MSG::INFO) << "Initializing" << endmsg;
22 
23  if (m_showerLibSvc.retrieve().isFailure()) {
24  return StatusCode::FAILURE;
25  } else {
26  msg(MSG::INFO) << "retrieved LArG4ShowerLibSvc" << endmsg;
27  }
28 
29  return StatusCode::SUCCESS;
30 }
31 
33 {
34  msg(MSG::INFO) << "Finalized" << endmsg;
35  return StatusCode::SUCCESS;
36 }
37 
39 {
40  msg(MSG::INFO) << "execute: stub" << endmsg;
41 
42  return StatusCode::SUCCESS;
43 }
LArG4ShowerLibSvcTest::m_showerLibSvc
ServiceHandle< ILArG4ShowerLibSvc > m_showerLibSvc
Definition: LArG4ShowerLibSvcTest.h:27
LArG4ShowerLibSvcTest::LArG4ShowerLibSvcTest
LArG4ShowerLibSvcTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArG4ShowerLibSvcTest.cxx:7
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArG4ShowerLibSvcTest.h
LArG4ShowerLibSvcTest::finalize
StatusCode finalize()
Definition: LArG4ShowerLibSvcTest.cxx:32
LArG4ShowerLibSvcTest::execute
StatusCode execute()
Definition: LArG4ShowerLibSvcTest.cxx:38
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
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
LArG4ShowerLibSvcTest::~LArG4ShowerLibSvcTest
virtual ~LArG4ShowerLibSvcTest()
Definition: LArG4ShowerLibSvcTest.cxx:14
LArG4ShowerLibSvcTest::initialize
StatusCode initialize()
Definition: LArG4ShowerLibSvcTest.cxx:18