28 return StatusCode::SUCCESS;
37 return StatusCode::FAILURE;
42 auto output = std::make_unique<ConstDataVector<xAOD::TrackParticleContainer>>(
SG::VIEW_ELEMENTS);
47 decPass(*itrk) =
false;
50 decPass(*itrk) =
true;
51 output->push_back(itrk);
54 ATH_CHECK(outputHandle.put(std::move(output)) !=
nullptr);
56 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
Gaudi::Property< float > m_upperPtCut
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelTool
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputTracksKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_outputDecorKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputTracksKey
PFTrackPreselAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
Handle class for adding a decoration to an object.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
TrackParticle_v1 TrackParticle
Reference the current persistent version: