ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14//
15// method implementations
16//
17
18namespace 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());
35 ANA_CHECK (m_systematicsList.initialize());
36 return StatusCode::SUCCESS;
37 }
38
39
40
41 StatusCode JetDecoratorAlg ::
42 execute ()
43 {
44 for (const auto& sys : m_systematicsList.systematicsVector())
45 {
46 const xAOD::JetContainer *jets = nullptr;
47 ANA_CHECK (m_jetHandle.getCopy(jets, sys));
48 ANA_CHECK (m_decorator->decorate(*jets));
49 }
50
51 return StatusCode::SUCCESS;
52 }
53}
#define ANA_CHECK(EXP)
check whether the given expression was successful
SysCopyHandle< const xAOD::JetContainer > m_jetHandle
the jet collection we run on
SysListHandle m_systematicsList
the systematics list we run
ToolHandle< IJetDecorator > m_decorator
the update tool
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.
JetContainer_v1 JetContainer
Definition of the current "jet container version".