23 return StatusCode::SUCCESS;
31 if (! inputTracksH.isValid()){
33 return StatusCode::FAILURE;
41 if ( trk !=
nullptr &&
m_selector->accept(*trk,
nullptr) ) {
42 selectedTracks->push_back(trk);
50 std::unique_ptr<const xAOD::TrackParticleContainer> selectedTracks_tc(selectedTracks.release()->asDataVector());
51 if (handle_out.put(std::move(selectedTracks_tc))==
nullptr ){
53 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_output
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_input
StatusCode initialize() override
Athena algorithm's Hooks.
StatusCode execute(const EventContext &ctx) const override
ToolHandle< InDet::IInDetTrackSelectionTool > m_selector
SG::ShallowCopyDecorDeps< xAOD::TrackParticleContainer > m_decorDeps
@ 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: