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 TrackFitResult_t = Acts::Result<ActsTrk::MutableTrackContainer::TrackProxy, std::error_code>
 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::TrackconvertFitResult (const EventContext &ctx, TrackFitResult_t &fitResult, const Trk::TrackInfo::TrackFitter fitAuthor) const =0
virtual void convertTrkToActsContainer (const EventContext &ctx, const TrackCollection &trackColl, ActsTrk::MutableTrackContainer &outTrackcoll) const =0
 Convert the passed Trk::TrackCollection into an Acts Track object and appends the result to the passed.
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 42 of file ITrackConverterTool.h.

Member Typedef Documentation

◆ TrackFitResult_t

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

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 55 of file ITrackConverterTool.h.

Member Function Documentation

◆ 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

◆ convertFitResult()

virtual std::unique_ptr< Trk::Track > ActsTrk::ITrackConverterTool::convertFitResult ( const EventContext & ctx,
TrackFitResult_t & fitResult,
const Trk::TrackInfo::TrackFitter fitAuthor ) const
pure virtual

◆ convertTrkToActsContainer()

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

Convert the passed Trk::TrackCollection into an Acts Track object and appends the result to the passed.

◆ 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: