ATLAS Offline Software
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
()
45
{
46
47
if
(
m_LArPileUpTool
->processAllSubEvents(Gaudi::Hive::currentContext()).isFailure()) {
48
ATH_MSG_ERROR
(
" error in LArPileupTool::processAllSubEvents"
);
49
return
StatusCode::FAILURE;
50
}
51
52
return
StatusCode::SUCCESS;
53
54
}
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
LArHitEMapMaker.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
LArHitEMapMaker::execute
virtual StatusCode execute() override
Definition:
LArHitEMapMaker.cxx:44
LArHitEMapMaker::initialize
virtual StatusCode initialize() override
Definition:
LArHitEMapMaker.cxx:25
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
LArHitEMapMaker::m_LArPileUpTool
ToolHandle< IPileUpTool > m_LArPileUpTool
Definition:
LArHitEMapMaker.h:26
LArHitEMapMaker::LArHitEMapMaker
LArHitEMapMaker(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
LArHitEMapMaker.cxx:16
Generated on Sun Dec 22 2024 21:13:30 for ATLAS Offline Software by
1.8.18