|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHEXBASICS_READXAOD_H
12 #define ATHEXBASICS_READXAOD_H
17 #include "GaudiKernel/ToolHandle.h"
23 ReadxAOD(
const std::string &
name, ISvcLocator *pSvcLocator);
36 {
this,
"PtCut", 500.0,
"pT Cut to apply to the tracks in MeV"};
40 ToolHandle<InDet::IInDetTrackSelectionTool>
m_trackSelectionTool{
this,
"TrackSelectionTool",
"InDetTrackSelectionTool",
"Tool for selecting tracks"};
std::atomic< unsigned int > m_nTracksBelow
Counter for tracks that have pT below the cut.
std::atomic< unsigned int > m_nTracksAbove
Counter for tracks that have pT above the cut.
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool.
ReadxAOD(const std::string &name, ISvcLocator *pSvcLocator)
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Read handle for the offline object container - set to muons by default.
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
virtual StatusCode finalize() override
Algorithm demonstrating reading of xAOD containers.
Gaudi::Property< float > m_cut
pT cut in MeV