20 return StatusCode::SUCCESS;
31 for (
auto track : *actsTracks ) {
33 auto destProxy = tracksContainer.makeTrack();
34 destProxy.copyFrom(track);
36 ATH_MSG_DEBUG(
" \\__ Converted " << tracksContainer.size() <<
" tracks");
45 ATH_CHECK( trackContainerHandle.
record(std::move(constTracksContainer)) );
46 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
SG::WriteHandleKey< ActsTrk::PersistentTrackContainer > m_outputTrackContainerKey
Key under which the xAOD type track container will be written to storegate.
virtual StatusCode execute(const EventContext &ctx) const override
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Tracking geometry tool handling the alignment constants.
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
Auxiliary class taking over the conversion of the Acts -> xAOD conversion.
SG::ReadHandleKey< ActsTrk::TrackContainer > m_inputTrackContainerKey
Key to access the track container considered for persitification.
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::string prefixFromTrackContainerName(const std::string &tracks)
Parse TrackContainer name to get the prefix for backends The name has to contain XYZTracks,...
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.