18 return StatusCode::SUCCESS;
23 auto convertedTracks = std::make_unique<TrackCollection>();
29 Link_t& link = dec_link(*inTrack);
33 ATH_MSG_ERROR(
"Track particle without ACTS track decoration");
34 return StatusCode::FAILURE;
40 return StatusCode::FAILURE;
42 link =
Link_t{*convertedTracks, convertedTracks->size()};
43 convertedTracks->push_back(std::move(track));
47 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ElementLink< xAOD::TruthParticleContainer > Link_t
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Handle class for recording to StoreGate.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Input read handle key collection.
ToolHandle< ITrackConverterTool > m_ATLASConverterTool
Conversion tool to convert from Acts -> Trk tracks.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_linkKey
Declare the data dependency on the trackLink.
virtual StatusCode initialize() override final
SG::WriteHandleKey< TrackCollection > m_writeKey
Declare the output container of the track collection.
ElementLink implementation for ROOT usage.
Handle class for adding a decoration to an object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::optional< ActsTrk::TrackContainer::ConstTrackProxy > getActsTrack(const xAOD::TrackParticle &trkPart)
Return the proxy to the Acts track from which the track particle was made frome.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".