ATLAS Offline Software
JetTrackSelectionAlg.h
Go to the documentation of this file.
1 // this is a -*- C++ -*- file
2 /*
3  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 */
5 
12 
13 #ifndef JetTrackSelectionAlg_H
14 #define JetTrackSelectionAlg_H
15 
17 #include "AsgTools/ToolHandle.h"
21 
23 
26 
27 class IJetExecuteTool;
28 
30 
31 public:
32 
33  JetTrackSelectionAlg(const std::string & n, ISvcLocator* l) : EL::AnaReentrantAlgorithm(n,l) {}
35 
37  StatusCode initialize() override;
38  StatusCode execute(const EventContext& ctx) const override;
39 
40 private:
41  ToolHandle<InDet::IInDetTrackSelectionTool> m_selector {this, "TrackSelector", "", "track selection tool"};
42 
43  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_input = {this, "InputContainer", "", "The input tracks"};
44  SG::WriteHandleKey<xAOD::TrackParticleContainer> m_output= {this, "OutputContainer", "JetSelectedTracks", "The output filtered tracks"};
45 
46  // this is to tell the scheduler to which decorations will be accessed from the ouput container :
47  SG::ShallowCopyDecorDeps<xAOD::TrackParticleContainer> m_decorDeps { this, "DecorDeps", {}, "List of decorations to propagate through the view container" };
48 };
49 
50 #endif
JetTrackSelectionAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: JetTrackSelectionAlg.cxx:27
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
JetTrackSelectionAlg::m_decorDeps
SG::ShallowCopyDecorDeps< xAOD::TrackParticleContainer > m_decorDeps
Definition: JetTrackSelectionAlg.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:158
JetTrackSelectionAlg::initialize
StatusCode initialize() override
Athena algorithm's Hooks.
Definition: JetTrackSelectionAlg.cxx:11
SG::ReadHandleKey< xAOD::TrackParticleContainer >
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
SG::WriteHandleKey< xAOD::TrackParticleContainer >
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::ShallowCopyDecorDeps
Helper to propagate decoration dependencies to a shallow copy.
Definition: StoreGate/StoreGate/ShallowCopyDecorDeps.h:75
IInDetTrackSelectionTool.h
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
JetTrackSelectionAlg
Definition: JetTrackSelectionAlg.h:29
JetTrackSelectionAlg::JetTrackSelectionAlg
JetTrackSelectionAlg(const std::string &n, ISvcLocator *l)
Definition: JetTrackSelectionAlg.h:33
JetTrackSelectionAlg::m_output
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_output
Definition: JetTrackSelectionAlg.h:44
AnaReentrantAlgorithm.h
JetTrackSelectionAlg::m_selector
ToolHandle< InDet::IInDetTrackSelectionTool > m_selector
Definition: JetTrackSelectionAlg.h:41
ToolHandle.h
JetTrackSelectionAlg::m_input
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_input
Definition: JetTrackSelectionAlg.h:43
TrackParticleContainer.h