11#ifndef ATHEXBASICS_READXAOD_H
12#define ATHEXBASICS_READXAOD_H
17#include "GaudiKernel/ToolHandle.h"
23 ReadxAOD(
const std::string &name, ISvcLocator *pSvcLocator);
26 virtual StatusCode
execute(
const EventContext& ctx)
const override;
27 virtual StatusCode
finalize()
override;
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"};
An algorithm that can be simultaneously executed in multiple threads.
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.
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Read handle for the offline object container - set to ID tracks by default.
virtual StatusCode initialize() override
ReadxAOD(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
Gaudi::Property< float > m_cut
pT cut in MeV
Property holding a SG store/key/clid from which a ReadHandle is made.