ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::ITrackConverterTool Class Referenceabstract

ConversionTool between the Acts Track EDM and the Trk::Track EDM. More...

#include <ITrackConverterTool.h>

Inheritance diagram for ActsTrk::ITrackConverterTool:
Collaboration diagram for ActsTrk::ITrackConverterTool:

Public Types

using ConstTrack_t = TrackContainer::ConstTrackProxy
 Abrivate the Track Proxy.
using Track_t = MutableTrackContainer::TrackProxy
using TrackFitResult_t = Acts::Result<Track_t, std::error_code>
using ActsTrack_t = ActsTrk::MutableTrackContainer::TrackProxy
 Convert the Acts fit result into a Trk::Track object, if the fit was successful.

Public Member Functions

 DeclareInterfaceID (ITrackConverterTool, 1, 0)
virtual std::vector< Acts::SourceLink > trkTrackToSourceLinks (const Trk::Track &track) const =0
 Converts the Trk measurement track states into a vector of Acts::Source links.
virtual std::unique_ptr< Trk::TrackconvertActsToTrk (const EventContext &ctx, const ActsTrack_t &actsTrack, const Trk::TrackInfo::TrackFitter fitAuthor) const =0
virtual std::unique_ptr< Trk::TrackconvertTrack (const EventContext &ctx, const ConstTrack_t &trackProxy) const =0
 Converts a const Acts::Track into.
virtual void convertTrkToActsContainer (const EventContext &ctx, const TrackCollection &trackColl, ActsTrk::MutableTrackContainer &outTrackColl) const =0
 Convert the Trk::Track in the passed TrackCollection into Acts tracks and appends the result to the passed mutable track container.
virtual std::unique_ptr< TrackCollectionconvertActsToTrkContainer (const EventContext &ctx, const ActsTrk::TrackContainer &trackCont) const =0
 Converts the Acts track container to a Trk::Track collection.

Detailed Description

ConversionTool between the Acts Track EDM and the Trk::Track EDM.

The tool converts entire TrackCollections (vector of Trk::Tracks) into an Acts::TrackContainers and vice versa. The conversion of single Acts::Tracks into a Trk::Track object is also possible. To prepare the refits from Trk::Tracks the tool also converts all meaurement states from a Trk::Track into Acts::SourceLinks.

Definition at line 43 of file ITrackConverterTool.h.

Member Typedef Documentation

◆ ActsTrack_t

using ActsTrk::ITrackConverterTool::ActsTrack_t = ActsTrk::MutableTrackContainer::TrackProxy

Convert the Acts fit result into a Trk::Track object, if the fit was successful.

Otherwise, a nullptr is returned.

Parameters
ctxEventContext to construct the Geometry & calibration context inside
fitResultOutcome from the Acts fitter
fitAuthorAuthor flag to be put into the Trk::Track meta data

Definition at line 59 of file ITrackConverterTool.h.

◆ ConstTrack_t

using ActsTrk::ITrackConverterTool::ConstTrack_t = TrackContainer::ConstTrackProxy

Abrivate the Track Proxy.

Definition at line 47 of file ITrackConverterTool.h.

◆ Track_t

using ActsTrk::ITrackConverterTool::Track_t = MutableTrackContainer::TrackProxy

Definition at line 48 of file ITrackConverterTool.h.

◆ TrackFitResult_t

using ActsTrk::ITrackConverterTool::TrackFitResult_t = Acts::Result<Track_t, std::error_code>

Definition at line 49 of file ITrackConverterTool.h.

Member Function Documentation

◆ convertActsToTrk()

virtual std::unique_ptr< Trk::Track > ActsTrk::ITrackConverterTool::convertActsToTrk ( const EventContext & ctx,
const ActsTrack_t & actsTrack,
const Trk::TrackInfo::TrackFitter fitAuthor ) const
pure virtual

◆ convertActsToTrkContainer()

virtual std::unique_ptr< TrackCollection > ActsTrk::ITrackConverterTool::convertActsToTrkContainer ( const EventContext & ctx,
const ActsTrk::TrackContainer & trackCont ) const
pure virtual

Converts the Acts track container to a Trk::Track collection.

Parameters
ctxEventContext to access the current conditions (alignment, calibration, etc.)
trackContReference to the track container for legacy converstion

◆ convertTrack()

virtual std::unique_ptr< Trk::Track > ActsTrk::ITrackConverterTool::convertTrack ( const EventContext & ctx,
const ConstTrack_t & trackProxy ) const
pure virtual

Converts a const Acts::Track into.

Parameters
ctxEventContext to access the current conditions (alignment, calibrations, etc.)
trackProxyThe acts track for conversion

◆ convertTrkToActsContainer()

virtual void ActsTrk::ITrackConverterTool::convertTrkToActsContainer ( const EventContext & ctx,
const TrackCollection & trackColl,
ActsTrk::MutableTrackContainer & outTrackColl ) const
pure virtual

Convert the Trk::Track in the passed TrackCollection into Acts tracks and appends the result to the passed mutable track container.

Parameters
ctxEventContext to access the current conditions (alignment, calibrations, etc.)
trackCollThe Trk::Track container to be converted
outTrackCollReference to the mutable track container to which the converted tracks are appended.

◆ DeclareInterfaceID()

ActsTrk::ITrackConverterTool::DeclareInterfaceID ( ITrackConverterTool ,
1 ,
0  )

◆ trkTrackToSourceLinks()

virtual std::vector< Acts::SourceLink > ActsTrk::ITrackConverterTool::trkTrackToSourceLinks ( const Trk::Track & track) const
pure virtual

Converts the Trk measurement track states into a vector of Acts::Source links.

The source links don't take ownership over the measurement states.

Parameters
trackReference to the track to convert

The documentation for this class was generated from the following file: