|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef PFTRACKSELECTOR_H
5 #define PFTRACKSELECTOR_H
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" };
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsReadHandleKey
ReadHandleKey for the ElectronContainer to be used as input.
bool selectTrack(const xAOD::TrackParticle &track) const
This applys a selection criteria to the track using the tracking CP track selection tool.
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectorTool
ToolHandle to track selection tool provided by tracking CP.
StatusCode execute(const EventContext &ctx) const
bool isMuon(const xAOD::TrackParticle *track) const
check if track belongs to an muon
ToolHandle< GenericMonitoringTool > m_monTool
Online monitoring tool for recording histograms of the alg in action.
bool isElectron(const xAOD::TrackParticle *track) const
check if track belongs to an electron
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize()
Gaudi AthAlgorithm hooks.
SG::WriteHandleKey< eflowRecTrackContainer > m_eflowRecTracksWriteHandleKey
WriteHandleKey for the eflowRecTrackContainer to write out.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksReadHandleKey
ReadHandleKey for the TrackParticleContainer to be used as input.
Header file to be included by clients of the Monitored infrastructure.
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
PFTrackSelector(const std::string &name, ISvcLocator *pSvcLocator)
Default constructor.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsReadHandleKey
ReadHandleKey for the MuonContainer to be used as input.
ToolHandle< eflowTrackExtrapolatorBaseAlgTool > m_theTrackExtrapolatorTool
ToolHandle for track extrapolation to calorimeter tool.
Class describing a TrackParticle.
~PFTrackSelector()
Default destructor.
Gaudi::Property< float > m_upperTrackPtCut
Upper limit on track Pt for input tracks.