ATLAS Offline Software
Public Types | Public Member Functions | List of all members
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 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. More...
 

Public Member Functions

 DeclareInterfaceID (IActsToTrkConverterTool, 1, 0)
 
virtual const Trk::SurfaceactsSurfaceToTrkSurface (const Acts::Surface &actsSurface) const =0
 Translates the parsed Acts surface into a Trk::Surface via associated detector element. More...
 
virtual const Acts::Surface & trkSurfaceToActsSurface (const Trk::Surface &atlasSurface) const =0
 Translate the parsed Trk surface into an Acts surface. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual std::unique_ptr< Trk::TrackParametersactsTrackParametersToTrkParameters (const Acts::BoundTrackParameters &actsParameter, const Acts::GeometryContext &gctx) const =0
 Translates the bounded Acts track parameters to Trk parameters. More...
 
virtual std::unique_ptr< Trk::TrackconvertFitResult (const EventContext &ctx, ActsTrk::MutableTrackContainer &tracks, 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
 

Detailed Description

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

Definition at line 45 of file IActsToTrkConverterTool.h.

Member Typedef Documentation

◆ 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
tracksReference to the Multi trajectory cotnainer
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 100 of file IActsToTrkConverterTool.h.

Member Function Documentation

◆ actsSurfaceToTrkSurface()

virtual const Trk::Surface& ActsTrk::IActsToTrkConverterTool::actsSurfaceToTrkSurface ( 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. Exception is thrown if the mapping fails.

Parameters
actsSurfaceRefrence to the acts surface to translate

◆ actsTrackParametersToTrkParameters()

virtual std::unique_ptr<Trk::TrackParameters> ActsTrk::IActsToTrkConverterTool::actsTrackParametersToTrkParameters ( 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
actsParameterRefrence to the bounded parameters to translate
gctxGeometry context to align the associated surface in global space

◆ convertFitResult()

virtual std::unique_ptr<Trk::Track> ActsTrk::IActsToTrkConverterTool::convertFitResult ( const EventContext &  ctx,
ActsTrk::MutableTrackContainer tracks,
TrackFitResult_t fitResult,
const Trk::TrackInfo::TrackFitter  fitAuthor,
const detail::SourceLinkType  slType 
) const
pure virtual

◆ DeclareInterfaceID()

ActsTrk::IActsToTrkConverterTool::DeclareInterfaceID ( IActsToTrkConverterTool  ,
,
 
)

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