ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
Root
JetDecoratorAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
//
9
// includes
10
//
11
12
#include <
JetAnalysisAlgorithms/JetDecoratorAlg.h
>
13
14
//
15
// method implementations
16
//
17
18
namespace
CP
19
{
20
JetDecoratorAlg ::
21
JetDecoratorAlg (
const
std::string&
name
,
22
ISvcLocator* pSvcLocator)
23
:
AnaAlgorithm
(
name
, pSvcLocator)
24
{
25
}
26
27
28
29
StatusCode JetDecoratorAlg ::
30
initialize ()
31
{
32
33
ANA_CHECK
(
m_decorator
.retrieve());
34
ANA_CHECK
(
m_jetHandle
.initialize (
m_systematicsList
));
35
ANA_CHECK
(
m_systematicsList
.initialize());
36
return
StatusCode::SUCCESS;
37
}
38
39
40
41
StatusCode JetDecoratorAlg ::
42
execute (
const
EventContext& ctx)
43
{
44
for
(
const
auto
& sys :
m_systematicsList
.systematicsVector())
45
{
46
const
xAOD::JetContainer
*jets =
nullptr
;
47
ANA_CHECK
(
m_jetHandle
.getCopy(jets, sys, ctx));
48
ANA_CHECK
(
m_decorator
->decorate(*jets));
49
}
50
51
return
StatusCode::SUCCESS;
52
}
53
}
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
JetDecoratorAlg.h
CP::JetDecoratorAlg::m_jetHandle
SysCopyHandle< const xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition
JetDecoratorAlg.h:45
CP::JetDecoratorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
JetDecoratorAlg.h:41
CP::JetDecoratorAlg::m_decorator
ToolHandle< IJetDecorator > m_decorator
the update tool
Definition
JetDecoratorAlg.h:37
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0