15 return StatusCode::SUCCESS;
24 ATH_MSG_ERROR(
"Couldn't retrieve xAOD::TrackParticles with key: "
26 return StatusCode::FAILURE;
34 tracksOut.
record(std::make_unique<xAOD::TrackParticleContainer>(),
35 std::make_unique<xAOD::TrackParticleAuxContainer>()));
41 xAOD::TrackParticle* newTrack = tracksOut->push_back (std::make_unique<xAOD::TrackParticle>());
46 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Read handle for the offline object container - set to tracks by default. **/.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_newKey
Read handle for the new track container **/.
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool */.
TrackParticle_v1 TrackParticle
Reference the current persistent version: