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

Conversion tool interface to translate surfaces & track parameters between the Acts & Trk realm. More...

#include <IActsToTrkConverterTool.h>

Inheritance diagram for ActsTrk::IActsToTrkConverterTool:
Collaboration diagram for ActsTrk::IActsToTrkConverterTool:

Public Types

using SurfacePtr_t = Trk::SurfaceUniquePtrT<const Trk::Surface>
 Abrivation of the surface pointer with memory management for free surfaces not associated with a Trk::DetElementBase.
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 (IActsToTrkConverterTool, 1, 0)
virtual SurfacePtr_t actsSurfaceToTrkSurface (const EventContext &ctx, const Acts::Surface &actsSurface) const =0
 Translates the parsed Acts surface into a Trk::Surface via associated detector element.
virtual std::shared_ptr< const Acts::Surface > trkSurfaceToActsSurface (const Trk::Surface &atlasSurface) const =0
 Translate the parsed Trk surface into an Acts surface.
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 void toSourceLinks (const std::vector< const Trk::MeasurementBase * > &measSet, std::vector< Acts::SourceLink > &links) const =0
 Converts a vector of Trk measurement states into a vector of Acts source links and appends the result to the exisiting set of source links.
virtual void toSourceLinks (const std::vector< const Trk::PrepRawData * > &prdSet, std::vector< Acts::SourceLink > &links) const =0
 Converts a vector of Trk::PrepRawData states into a vector of Acts source links and appends the result to the exisiting set of source links.
virtual const Acts::BoundTrackParameters trkTrackParametersToActsParameters (const Trk::TrackParameters &atlasParameter, const Acts::GeometryContext &gctx, Trk::ParticleHypothesis hypothesis=Trk::pion) const =0
 Translates the Trk track parameters into bound Acts track parameters with a particle hypothesis.
virtual std::unique_ptr< Trk::TrackParametersactsTrackParametersToTrkParameters (const EventContext &ctx, const Acts::BoundTrackParameters &actsParameter, const Acts::GeometryContext &gctx) const =0
 Translates the bounded Acts track parameters to Trk parameters.
virtual std::unique_ptr< Trk::TrackconvertFitResult (const EventContext &ctx, TrackFitResult_t &fitResult, const Trk::TrackInfo::TrackFitter fitAuthor, const detail::SourceLinkType slType) const =0
virtual void trkTrackCollectionToActsTrackContainer (ActsTrk::MutableTrackContainer &tc, const TrackCollection &trackColl, const Acts::GeometryContext &gctx) const =0
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

Conversion tool interface to translate surfaces & track parameters between the Acts & Trk realm.

Definition at line 46 of file IActsToTrkConverterTool.h.

Member Typedef Documentation

◆ SurfacePtr_t

Abrivation of the surface pointer with memory management for free surfaces not associated with a Trk::DetElementBase.

Definition at line 51 of file IActsToTrkConverterTool.h.

◆ TrackFitResult_t

using ActsTrk::IActsToTrkConverterTool::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
slTypeSource link type steering how the uncalibrated Acts::SourceLinks are turned into Trk::MeasurementBase objects

Definition at line 107 of file IActsToTrkConverterTool.h.

Member Function Documentation

◆ actsSurfaceToTrkSurface()

virtual SurfacePtr_t ActsTrk::IActsToTrkConverterTool::actsSurfaceToTrkSurface ( const EventContext & ctx,
const Acts::Surface & actsSurface ) const
pure virtual

Translates the parsed Acts surface into a Trk::Surface via associated detector element.

For the ID measurements a direct link is provided and for the muon measurements the look-up is performed via the associated Identifier and the detector manager. Other surfaces trigger the creation of new free Trk surfaces

Parameters
ctxThe current event context
actsSurfaceRefrence to the acts surface to translate

◆ actsTrackParametersToTrkParameters()

virtual std::unique_ptr< Trk::TrackParameters > ActsTrk::IActsToTrkConverterTool::actsTrackParametersToTrkParameters ( const EventContext & ctx,
const Acts::BoundTrackParameters & actsParameter,
const Acts::GeometryContext & gctx ) const
pure virtual

Translates the bounded Acts track parameters to Trk parameters.

The bound parameter surface must be translatble by the tool

Parameters
ctxEventContext
actsParameterRefrence to the bounded parameters to translate
gctxGeometry context to align the associated surface in global space

◆ convertActsToTrkContainer()

virtual std::unique_ptr< TrackCollection > ActsTrk::IActsToTrkConverterTool::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::IActsToTrkConverterTool::convertFitResult ( const EventContext & ctx,
TrackFitResult_t & fitResult,
const Trk::TrackInfo::TrackFitter fitAuthor,
const detail::SourceLinkType slType ) const
pure virtual

◆ DeclareInterfaceID()

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

◆ toSourceLinks() [1/2]

virtual void ActsTrk::IActsToTrkConverterTool::toSourceLinks ( const std::vector< const Trk::MeasurementBase * > & measSet,
std::vector< Acts::SourceLink > & links ) const
pure virtual

Converts a vector of Trk measurement states into a vector of Acts source links and appends the result to the exisiting set of source links.

Parameters
measSetReference to the measurement set to transform
linkTarget vector to which the new source links are appended

◆ toSourceLinks() [2/2]

virtual void ActsTrk::IActsToTrkConverterTool::toSourceLinks ( const std::vector< const Trk::PrepRawData * > & prdSet,
std::vector< Acts::SourceLink > & links ) const
pure virtual

Converts a vector of Trk::PrepRawData states into a vector of Acts source links and appends the result to the exisiting set of source links.

Parameters
measSetReference to the measurement set to transform
linkTarget vector to which the new source links are appended

◆ trkSurfaceToActsSurface()

virtual std::shared_ptr< const Acts::Surface > ActsTrk::IActsToTrkConverterTool::trkSurfaceToActsSurface ( const Trk::Surface & atlasSurface) const
pure virtual

Translate the parsed Trk surface into an Acts surface.

The detector element identifier of the surface needs to be filled into the internal tool's look-up map. Otherwise an exception is thrown.

Parameters
atlasSurfaceRefrence to the Trk surface to translate

◆ trkTrackCollectionToActsTrackContainer()

virtual void ActsTrk::IActsToTrkConverterTool::trkTrackCollectionToActsTrackContainer ( ActsTrk::MutableTrackContainer & tc,
const TrackCollection & trackColl,
const Acts::GeometryContext & gctx ) const
pure virtual

◆ trkTrackParametersToActsParameters()

virtual const Acts::BoundTrackParameters ActsTrk::IActsToTrkConverterTool::trkTrackParametersToActsParameters ( const Trk::TrackParameters & atlasParameter,
const Acts::GeometryContext & gctx,
Trk::ParticleHypothesis hypothesis = Trk::pion ) const
pure virtual

Translates the Trk track parameters into bound Acts track parameters with a particle hypothesis.

Parameters
atlasParameterThe Trk parameters to translate.
gctsGeometry context needed for special treatment of the annulus bounds
hypothesisTrack hypothesis to use

◆ trkTrackToSourceLinks()

virtual std::vector< Acts::SourceLink > ActsTrk::IActsToTrkConverterTool::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: