ATLAS Offline Software
JetRecAlg.h
Go to the documentation of this file.
1 // this is a -*- C++ -*- file
2 /*
3  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4 */
5 
15 
16 #ifndef JetRecAlg_H
17 #define JetRecAlg_H
18 
20 #include "AsgTools/ToolHandle.h"
23 
26 
27 #if !defined(GENERATIONBASE) && !defined(XAOD_ANALYSIS)
29 #endif
30 
31 class IJetExecuteTool;
32 
34 
35 public:
36 
37  JetRecAlg(const std::string & n, ISvcLocator* l) : EL::AnaReentrantAlgorithm(n,l) {}
39 
41  StatusCode initialize() override;
42  StatusCode execute(const EventContext& ctx) const override;
43 
44 private:
45 
47  ToolHandle<IJetProvider> m_jetprovider ={this , "Provider" , {} , "Tool providing the jets (fastjet, copy, grooming...)"};
48  ToolHandleArray<IJetModifier> m_modifiers = {this , "Modifiers", {}, "moment calculators" };
49  SG::WriteHandleKey<xAOD::JetContainer> m_output= {this, "OutputContainer", "AntiKt4LCtopoJets", "The output jet container name"};
50  SG::WriteDecorHandleKey<xAOD::JetContainer> m_parentKey= {this, "ParentDecor", "", "The parent decoration of the output jet container"};
51 #if !defined (GENERATIONBASE) && !defined (XAOD_ANALYSIS)
52  ToolHandle<GenericMonitoringTool> m_monTool{this,"MonTool","","Monitoring tool"};
53 #endif
54 
55 };
56 
57 #endif
IJetProvider.h
SG::WriteDecorHandleKey< xAOD::JetContainer >
JetRecAlg::initialize
StatusCode initialize() override
Athena algorithm's Hooks.
Definition: JetRecAlg.cxx:23
JetRecAlg::m_modifiers
ToolHandleArray< IJetModifier > m_modifiers
Definition: JetRecAlg.h:48
JetRecAlg::m_jetprovider
ToolHandle< IJetProvider > m_jetprovider
Athena configured tools.
Definition: JetRecAlg.h:47
IJetExecuteTool
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
Definition: IJetExecuteTool.h:19
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:157
JetRecAlg::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: JetRecAlg.h:52
IJetModifier.h
JetRecAlg
Definition: JetRecAlg.h:33
GenericMonitoringTool.h
JetRecAlg::JetRecAlg
JetRecAlg(const std::string &n, ISvcLocator *l)
Definition: JetRecAlg.h:37
SG::WriteHandleKey< xAOD::JetContainer >
beamspotman.n
n
Definition: beamspotman.py:727
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AsgComponentFactories.h:16
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
JetRecAlg::m_output
SG::WriteHandleKey< xAOD::JetContainer > m_output
Definition: JetRecAlg.h:49
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaReentrantAlgorithm.cxx:29
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
WriteDecorHandleKey.h
JetRecAlg::m_parentKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_parentKey
Definition: JetRecAlg.h:50
AnaReentrantAlgorithm.h
ToolHandle.h
JetRecAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: JetRecAlg.cxx:58