ATLAS Offline Software
Loading...
Searching...
No Matches
JetAlgorithm.cxx
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4*/
5
6// JetAlgorithm.cxx
7
10
12
13//**********************************************************************
14
16 ATH_MSG_INFO("Initializing " << name() << "...");
17 ATH_CHECK( m_exetools.retrieve() );
18 ATH_MSG_INFO(" Tool count: " << m_exetools.size());
19 for ( const ToolHandle<IJetExecuteTool>& tool : m_exetools ) {
20 ATH_MSG_INFO(" " << tool->name());
21 tool->print();
22 }
23 return StatusCode::SUCCESS;
24}
25
26//**********************************************************************
27
28StatusCode JetAlgorithm::execute(const EventContext&) const {
29 // Loop over tools.
30 for ( const ToolHandle<IJetExecuteTool>& htool : m_exetools ) {
31 ATH_MSG_DEBUG("Executing tool " << htool->name());
32 const int jstat = htool->execute();
33 if ( jstat != 0 ) ATH_MSG_INFO("Tool " << htool->name() << " returned error " << jstat);
34 else ATH_MSG_DEBUG("Tool execution succeeded");
35 }
36 return StatusCode::SUCCESS;
37}
38
39//**********************************************************************
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
ToolHandleArray< IJetExecuteTool > m_exetools
Athena configured tools.
StatusCode execute(const EventContext &ctx) const override
~JetAlgorithm()
Destructor:
StatusCode initialize() override
Athena algorithm's Hooks.