ATLAS Offline Software
Loading...
Searching...
No Matches
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"
9
10using std::string;
11
12namespace met {
13
14 //**********************************************************************
15
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}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandleArray< IMETRecoTool > m_recotools
Athena configured tools.
Definition METRecoAlg.h:35
virtual StatusCode finalize() override
virtual StatusCode initialize() override
Athena algorithm's Hooks.