ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArDigitization
src
LArHitEMapMaker.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// +==========================================================================+
6
// + +
7
// + "empty" algorithm to run LAr digitization +
8
// + invoking new LArPileUpTool to do all the work +
9
// + +
10
// +==========================================================================+
11
//
12
#include "
LArHitEMapMaker.h
"
13
14
//----------------------------------------------------------------------------------
15
16
LArHitEMapMaker::LArHitEMapMaker
(
const
std::string& name, ISvcLocator* pSvcLocator)
17
:
AthAlgorithm
(name, pSvcLocator),
18
m_LArPileUpTool
(
"LArPileUpTool"
,this)
19
{
20
declareProperty
(
"LArPileUpTool"
,
m_LArPileUpTool
,
"Tool to perform the real work"
);
21
}
22
23
// ----------------------------------------------------------------------------------
24
25
StatusCode
LArHitEMapMaker::initialize
()
26
{
27
28
ATH_MSG_DEBUG
(
"initialize LArHitEMapMaker"
);
29
30
if
(
m_LArPileUpTool
.retrieve().isFailure())
31
{
32
ATH_MSG_ERROR
(
" Unable to access LArPileUpTool"
);
33
return
StatusCode::FAILURE;
34
}
35
36
37
ATH_MSG_DEBUG
(
" Initialization completed successfully"
);
38
39
return
StatusCode::SUCCESS;
40
}
41
42
// -------------------------------------------------------------------------------------
43
44
StatusCode
LArHitEMapMaker::execute
(
const
EventContext& ctx)
45
{
46
47
if
(
m_LArPileUpTool
->processAllSubEvents(ctx).isFailure()) {
48
ATH_MSG_ERROR
(
" error in LArPileupTool::processAllSubEvents"
);
49
return
StatusCode::FAILURE;
50
}
51
52
return
StatusCode::SUCCESS;
53
54
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x,...)
Definition
AthMsgStreamMacros.h:47
LArHitEMapMaker.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthCommonAlgorithm< Gaudi::Algorithm >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
LArHitEMapMaker::m_LArPileUpTool
ToolHandle< IPileUpTool > m_LArPileUpTool
Definition
LArHitEMapMaker.h:26
LArHitEMapMaker::LArHitEMapMaker
LArHitEMapMaker(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArHitEMapMaker.cxx:16
LArHitEMapMaker::initialize
virtual StatusCode initialize() override
Definition
LArHitEMapMaker.cxx:25
LArHitEMapMaker::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
LArHitEMapMaker.cxx:44
Generated on
for ATLAS Offline Software by
1.17.0