ATLAS Offline Software
LArCalorimeter
LArG4
LArG4ShowerLibSvc
src
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
5
#include "
LArG4ShowerLibSvc/LArG4ShowerLibSvcTest.h
"
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
14
LArG4ShowerLibSvcTest::~LArG4ShowerLibSvcTest
()
15
{
16
}
17
18
StatusCode
LArG4ShowerLibSvcTest::initialize
()
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
32
StatusCode
LArG4ShowerLibSvcTest::finalize
()
33
{
34
msg
(MSG::INFO) <<
"Finalized"
<<
endmsg
;
35
return
StatusCode::SUCCESS;
36
}
37
38
StatusCode
LArG4ShowerLibSvcTest::execute
()
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
Generated on Sun Dec 22 2024 21:13:29 for ATLAS Offline Software by
1.8.18