ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
MET
METReconstruction
src
METRecoAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// METRecoAlg.cxx
6
7
#include "
METRecoAlg.h
"
8
#include "
METRecoInterface/IMETRecoTool.h
"
9
10
using
std::string;
11
12
namespace
met
{
13
14
//**********************************************************************
15
16
StatusCode
METRecoAlg::initialize
() {
17
ATH_MSG_VERBOSE
(
"Initializing "
<<
name
() <<
"..."
);
18
19
ATH_CHECK
(
m_recotools
.retrieve() );
20
21
return
StatusCode::SUCCESS;
22
}
23
24
//**********************************************************************
25
26
StatusCode
METRecoAlg::finalize
() {
27
ATH_MSG_VERBOSE
(
"Finalizing "
<<
name
() <<
"..."
);
28
return
StatusCode::SUCCESS;
29
}
30
31
//**********************************************************************
32
33
StatusCode
METRecoAlg::execute
(
const
EventContext& ctx)
const
{
34
ATH_MSG_VERBOSE
(
"Executing "
<<
name
() <<
"..."
);
35
// Loop over tools.
36
37
// Run the top-level MET tools in sequence
38
for
(
auto
tool :
m_recotools
) {
39
ATH_MSG_VERBOSE
(
"Running tool: "
<< tool->name() );
40
if
( tool->execute(ctx).isFailure() ) {
41
ATH_MSG_ERROR
(
"Failed to execute tool: "
<< tool->name());
42
return
StatusCode::FAILURE;
43
}
44
}
45
46
return
StatusCode::SUCCESS;
47
}
48
49
//**********************************************************************
50
51
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition
AthMsgStreamMacros.h:28
IMETRecoTool.h
METRecoAlg.h
met::METRecoAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
METRecoAlg.cxx:33
met::METRecoAlg::m_recotools
ToolHandleArray< IMETRecoTool > m_recotools
Athena configured tools.
Definition
METRecoAlg.h:35
met::METRecoAlg::finalize
virtual StatusCode finalize() override
Definition
METRecoAlg.cxx:26
met::METRecoAlg::initialize
virtual StatusCode initialize() override
Athena algorithm's Hooks.
Definition
METRecoAlg.cxx:16
met
Definition
IMETSignificance.h:24
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0