![]() |
ATLAS Offline Software
|
ConversionTool between the Acts Track EDM and the Trk::Track EDM. More...
#include <ITrackConverterTool.h>
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::Track > | convertActsToTrk (const EventContext &ctx, const ActsTrack_t &actsTrack, const Trk::TrackInfo::TrackFitter fitAuthor) const =0 |
| virtual std::unique_ptr< Trk::Track > | convertTrack (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< 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 43 of file ITrackConverterTool.h.
| 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.
| 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 59 of file ITrackConverterTool.h.
| using ActsTrk::ITrackConverterTool::ConstTrack_t = TrackContainer::ConstTrackProxy |
Abrivate the Track Proxy.
Definition at line 47 of file ITrackConverterTool.h.
| using ActsTrk::ITrackConverterTool::Track_t = MutableTrackContainer::TrackProxy |
Definition at line 48 of file ITrackConverterTool.h.
| using ActsTrk::ITrackConverterTool::TrackFitResult_t = Acts::Result<Track_t, std::error_code> |
Definition at line 49 of file ITrackConverterTool.h.
|
pure virtual |
|
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 |
Converts a const Acts::Track into.
| ctx | EventContext to access the current conditions (alignment, calibrations, etc.) |
| trackProxy | The acts track for conversion |
|
pure virtual |
Convert the Trk::Track in the passed TrackCollection into Acts tracks and appends the result to the passed mutable track container.
| ctx | EventContext to access the current conditions (alignment, calibrations, etc.) |
| trackColl | The Trk::Track container to be converted |
| outTrackColl | Reference to the mutable track container to which the converted tracks are appended. |
| 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 |