ATLAS Offline Software
Loading...
Searching...
No Matches
JetModifierAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8//
9// includes
10//
11
13
14//
15// method implementations
16//
17
18namespace CP
19{
20
21 StatusCode JetModifierAlg ::
22 initialize ()
23 {
24 ANA_CHECK (m_modifierTool.retrieve());
26 ANA_CHECK (m_systematicsList.initialize());
27 ANA_CHECK (m_outOfValidity.initialize());
28 return StatusCode::SUCCESS;
29 }
30
31
32
33 StatusCode JetModifierAlg ::
34 execute ()
35 {
36 for (const auto& sys : m_systematicsList.systematicsVector())
37 {
38 xAOD::JetContainer *jets = nullptr;
39 ANA_CHECK (m_jetHandle.getCopy (jets, sys));
40 ANA_CHECK (m_modifierTool->modify (*jets));
41 }
42
43 return StatusCode::SUCCESS;
44 }
45}
#define ANA_CHECK(EXP)
check whether the given expression was successful
ToolHandle< IJetModifier > m_modifierTool
the modifier tool
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
SysListHandle m_systematicsList
the systematics list we run
Select isolated Photons, Electrons and Muons.
JetContainer_v1 JetContainer
Definition of the current "jet container version".