4#ifndef PFTRACKSELECTOR_H
5#define PFTRACKSELECTOR_H
38 StatusCode
execute(
const EventContext& ctx)
const;
55 "InDetTrackParticles",
56 "ReadHandleKey for the TrackParticleContainer to be used as input"
63 "eflowRec_selectedElectrons",
64 "ReadHandleKey for the ElectronContainer to be used as input"
71 "eflowRec_selectedMuons",
72 "ReadHandleKey for the MuonContainer to be used as input"
78 "eflowRecTracksOutputName",
80 "WriteHandleKey for the eflowRecTrackContainer to write out"
86 "primary vertex container" };
91 "trackExtrapolatorTool",
92 "Trk::ParticleCaloExtensionTool",
93 "ToolHandle for track extrapolation to calorimeter tool"
97 ToolHandle<InDet::IInDetTrackSelectionTool>
98 m_trackSelectorTool{
this,
"trackSelectionTool",
"",
"ToolHandle to track selection tool provided by tracking CP" };
104 "Upper limit on track Pt for input tracks" };
107 ToolHandle<GenericMonitoringTool>
m_monTool{
this,
"MonTool",
"",
"Monitoring tool" };
defines an "iterator" over instances of a given type in StoreGateSvc
Header file to be included by clients of the Monitored infrastructure.
An algorithm that can be simultaneously executed in multiple threads.
bool selectTrack(const xAOD::TrackParticle &track) const
This applys a selection criteria to the track using the tracking CP track selection tool.
SG::WriteHandleKey< eflowRecTrackContainer > m_eflowRecTracksWriteHandleKey
WriteHandleKey for the eflowRecTrackContainer to write out.
bool isMuon(const xAOD::TrackParticle *track) const
check if track belongs to an muon
bool isElectron(const xAOD::TrackParticle *track) const
check if track belongs to an electron
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
PFTrackSelector(const std::string &name, ISvcLocator *pSvcLocator)
Default constructor.
StatusCode initialize()
Gaudi AthAlgorithm hooks.
ToolHandle< eflowTrackExtrapolatorBaseAlgTool > m_theTrackExtrapolatorTool
ToolHandle for track extrapolation to calorimeter tool.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksReadHandleKey
ReadHandleKey for the TrackParticleContainer to be used as input.
StatusCode execute(const EventContext &ctx) const
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectorTool
ToolHandle to track selection tool provided by tracking CP.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsReadHandleKey
ReadHandleKey for the MuonContainer to be used as input.
ToolHandle< GenericMonitoringTool > m_monTool
Online monitoring tool for recording histograms of the alg in action.
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsReadHandleKey
ReadHandleKey for the ElectronContainer to be used as input.
~PFTrackSelector()
Default destructor.
Gaudi::Property< float > m_upperTrackPtCut
Upper limit on track Pt for input tracks.
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.
TrackParticle_v1 TrackParticle
Reference the current persistent version: