ATLAS Offline Software
Loading...
Searching...
No Matches
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
27class IJetExecuteTool;
28
30
31public:
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
40private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector adapter that acts like it holds const pointers.
Helper to propagate decoration dependencies to a shallow copy.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_output
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_input
StatusCode initialize() override
Athena algorithm's Hooks.
StatusCode execute(const EventContext &ctx) const override
ToolHandle< InDet::IInDetTrackSelectionTool > m_selector
SG::ShallowCopyDecorDeps< xAOD::TrackParticleContainer > m_decorDeps
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
JetTrackSelectionAlg(const std::string &n, ISvcLocator *l)
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper to propagate decoration dependencies to a shallow copy.
Property holding a SG store/key/clid from which a WriteHandle is made.
This module defines the arguments passed from the BATCH driver to the BATCH worker.