![]() |
ATLAS Offline Software
|
ConversionTool between the Acts Track EDM and the Trk::Track EDM. More...
#include <ITrackConverterTool.h>
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::Track > | convertFitResult (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< TrackCollection > | convertActsToTrkContainer (const EventContext &ctx, const ActsTrk::TrackContainer &trackCont) const =0 |
| Converts the Acts track container to a Trk::Track collection. | |
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.
| 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.
| ctx | EventContext to construct the Geometry & calibration context inside |
| fitResult | Outcome from the Acts fitter |
| fitAuthor | Author flag to be put into the Trk::Track meta data |
Definition at line 55 of file ITrackConverterTool.h.
|
pure virtual |
Converts the Acts track container to a Trk::Track collection.
| ctx | EventContext to access the current conditions (alignment, calibration, etc.) |
| trackCont | Reference to the track container for legacy converstion |
|
pure virtual |
|
pure virtual |
| ActsTrk::ITrackConverterTool::DeclareInterfaceID | ( | ITrackConverterTool | , |
| 1 | , | ||
| 0 | ) |
|
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.
| track | Reference to the track to convert |