ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRec
src
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
8
#include "
JetRec/JetAlgorithm.h
"
9
#include "
JetInterface/IJetExecuteTool.h
"
10
11
JetAlgorithm::~JetAlgorithm
() =
default
;
12
13
//**********************************************************************
14
15
StatusCode
JetAlgorithm::initialize
() {
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
}
22
return
StatusCode::SUCCESS;
23
}
24
25
//**********************************************************************
26
27
StatusCode
JetAlgorithm::execute
(
const
EventContext&)
const
{
28
// Loop over tools.
29
for
(
const
ToolHandle<IJetExecuteTool>& htool :
m_exetools
) {
30
ATH_MSG_DEBUG
(
"Executing tool "
<< htool->name());
31
const
int
jstat = htool->execute();
32
if
( jstat != 0 )
ATH_MSG_INFO
(
"Tool "
<< htool->name() <<
" returned error "
<< jstat);
33
else
ATH_MSG_DEBUG
(
"Tool execution succeeded"
);
34
}
35
return
StatusCode::SUCCESS;
36
}
37
38
//**********************************************************************
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
IJetExecuteTool.h
JetAlgorithm.h
JetAlgorithm::m_exetools
ToolHandleArray< IJetExecuteTool > m_exetools
Athena configured tools.
Definition
JetAlgorithm.h:32
JetAlgorithm::execute
StatusCode execute(const EventContext &ctx) const override
Definition
JetAlgorithm.cxx:27
JetAlgorithm::~JetAlgorithm
~JetAlgorithm()
Destructor:
JetAlgorithm::initialize
StatusCode initialize() override
Athena algorithm's Hooks.
Definition
JetAlgorithm.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0