ATLAS Offline Software
Loading...
Searching...
No Matches
JetDecorationAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8
10
11 ATH_CHECK(m_jetKey.initialize());
12 if (m_decorators.empty()){
13 ATH_MSG_FATAL("No decorators were given");
14 return StatusCode::FAILURE;
15 }
16 ATH_CHECK(m_decorators.retrieve());
17 ATH_MSG_INFO("Initialize .... List of decorators:");
18 for(const ToolHandle<IJetDecorator>& t : m_decorators){
19 ATH_MSG_INFO(" --> : "<< t->name());
20 }
21
22 return StatusCode::SUCCESS;
23}
24
25
26StatusCode JetDecorationAlg::execute(const EventContext& ctx) const {
27
29
30 ATH_MSG_DEBUG("Applying jet decorators to " << m_jetKey.key());
31 for(const ToolHandle<IJetDecorator>& t : m_decorators){
32 ATH_MSG_DEBUG("Running " << t.name());
33 ATH_CHECK(t->decorate(*jetHandle));
34 }
35
36 return StatusCode::SUCCESS;
37
38}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Handle class for reading from StoreGate.
StatusCode execute(const EventContext &ctx) const override
StatusCode initialize() override
Athena algorithm's Hooks.
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
ToolHandleArray< IJetDecorator > m_decorators