ATLAS Offline Software
Loading...
Searching...
No Matches
L1jFexJetThresholdsDecoratorAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
9
10#include <string>
11#include <vector>
12
13namespace CP
14{
15
17 {
18 ANA_CHECK(m_l1JetsKey.initialize());
19 ANA_CHECK(m_trigConfigTool.retrieve());
20
22 ANA_CHECK(m_thresholdsDecorKey.initialize());
23 return StatusCode::SUCCESS;
24 }
25
26 StatusCode L1jFexJetThresholdsDecoratorAlg::execute(const EventContext& ctx) {
28 m_l1ThresholdType.value(), ctx,
29 msg()));
30
32 if (!l1Jets.isValid()) {
33 ANA_MSG_ERROR("Failed to retrieve " << m_l1JetsKey.key());
34 return StatusCode::FAILURE;
35 }
36
38 thresholdsDec(m_thresholdsDecorKey, ctx);
39
40 for (const xAOD::jFexSRJetRoI* roi : *l1Jets) {
41 thresholdsDec(*roi) = m_jfexThresholdTable.decode(*roi);
42 }
43
44 return StatusCode::SUCCESS;
45 }
46}
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
#define ANA_MSG_ERROR(xmsg,...)
Macro printing error messages.
#define ANA_CHECK(EXP)
check whether the given expression was successful
SG::WriteDecorHandleKey< xAOD::jFexSRJetRoIContainer > m_thresholdsDecorKey
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_l1JetsKey
ToolHandle< TrigConf::ITrigConfigTool > m_trigConfigTool
JfexThresholdTable m_jfexThresholdTable
the jFEX bit-to-name table, (re)built lazily in execute()
virtual::StatusCode execute()
execute this algorithm
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
Select isolated Photons, Electrons and Muons.
jFexSRJetRoI_v1 jFexSRJetRoI
Define the latest version of the jFexSRJetRoI class.
MsgStream & msg
Definition testRead.cxx:32