![]() |
ATLAS Offline Software
|
#include <ActsToTrkConverterTool.h>
Public Member Functions | |
| virtual StatusCode | initialize () override |
| virtual std::vector< Acts::SourceLink > | trkTrackToSourceLinks (const Trk::Track &track) const override |
| 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 override final |
| virtual std::unique_ptr< Trk::Track > | convertTrack (const EventContext &ctx, const ConstTrack_t &trackProxy) const override final |
| Converts a const Acts::Track into. | |
| virtual void | convertTrkToActsContainer (const EventContext &ctx, const TrackCollection &trackColl, ActsTrk::MutableTrackContainer &outTrackcoll) const override |
| 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 override final |
| Converts the Acts track container to a Trk::Track collection. | |
Private Types | |
| using | TrkTSOSMask = std::bitset<Trk::TrackStateOnSurface::NumberOfTrackStateOnSurfaceTypes> |
| Abrivate the state mask for the TSOS. | |
Private Member Functions | |
| template<typename Proxy_t> | |
| std::unique_ptr< Trk::Track > | convertActsTrack (const EventContext &ctx, const Proxy_t &track, const Trk::TrackInfo::TrackFitter fitAuthor) const |
| Helper function to convert a Acts TrackPoxy (which may be const or not) into a Trk::Track. | |
| void | appendMeasTSOS (const EventContext &ctx, const xAOD::UncalibratedMeasurement *meas, const TrkTSOSMask typePattern, Trk::FitQualityOnSurface &&quality, std::unique_ptr< Trk::TrackParameters > trkPars, Trk::TrackStates &states) const |
| Append the translated TSOS at the beginning of the states container corresponding to the parsed measurement. | |
| template<typename PrdType_t> | |
| const Trk::PrepRawData * | fetchPrd (const EventContext &ctx, const SG::ReadHandleKey< PrdType_t > &key, const Identifier &prdId, const IdentifierHash &hash) const |
| Searches a Prd object from a collection according to the measurement's Identifier and the container's hash. | |
| bool | actsTrackParameterPositionCheck (const Acts::BoundTrackParameters &actsParameter, const Trk::TrackParameters &tsos, const Acts::GeometryContext &gctx) const |
Private Attributes | |
| PublicToolHandle< IGeometryRealmConvTool > | m_geometryConvTool {this, "GeometryRealmConvTool", ""} |
| ContextUtility | m_ctxProvider {this} |
| Utility to fetch the geometry, magnetic field and calibration context in the event. | |
| ToolHandle< Trk::IExtendedTrackSummaryTool > | m_trkSummaryTool {this, "SummaryTool", "", "ToolHandle for track summary tool"} |
| Tools needed to create Trk::Tracks from the ACts fit result. | |
| ToolHandle< Trk::IRIO_OnTrackCreator > | m_ROTcreator {this, "RotCreatorTool", ""} |
| Gaudi::Property< bool > | m_convertHoles {this, "convertHoles", true } |
| Flag to convert the hole states. | |
| Gaudi::Property< bool > | m_convertOutliers {this, "convertOutliers", true} |
| Flag to convert the outlier states. | |
| Gaudi::Property< bool > | m_convertMaterial {this, "convertMaterial", false} |
| Flag to convert the material states (non sensitive) Acts -> Trk conversion. | |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
| SG::ReadHandleKey< Muon::MdtPrepDataContainer > | m_keyMdt {this, "MdtKey", "MDT_DriftCircles"} |
| SG::ReadHandleKey< Muon::RpcPrepDataContainer > | m_keyRpc {this, "RpcKey", "RPC_Measurements"} |
| SG::ReadHandleKey< Muon::TgcPrepDataContainer > | m_keyTgc {this, "TgcKey", "TGC_MeasurementsAllBCs"} |
| SG::ReadHandleKey< Muon::MMPrepDataContainer > | m_keyMm {this, "MmKey", "MM_Measurements"} |
| SG::ReadHandleKey< Muon::sTgcPrepDataContainer > | m_keyStgc {this, "sTgcKey", "STGC_Measurements"} |
| SG::ReadHandleKey< InDet::PixelClusterContainer > | m_pixelKey {this, "PixelKey", "ITkPixelClusters" } |
| SG::ReadHandleKey< InDet::SCT_ClusterContainer > | m_sctKey {this, "SctKey", "ITkStripClusters" } |
| ToolHandle< Muon::IMuonCompetingClustersOnTrackCreator > | m_compRotCreator {this, "CompetingRotCreator", ""} |
| detail::TrkMeasurementCalibrator | m_measCalib {} |
| detail::TrkPrepRawDataCalibrator | m_prdCalib {} |
| Trk::TrackInfo::TrackFitter | m_fitAuthor {Trk::TrackInfo::TrackFitter::GlobalChi2Fitter} |
Definition at line 44 of file ActsToTrkConverterTool.h.
|
private |
Abrivate the state mask for the TSOS.
Definition at line 80 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 230 of file ActsToTrkConverterTool.cxx.
|
private |
Append the translated TSOS at the beginning of the states container corresponding to the parsed measurement.
| ctx | EventContext to access the calibration conditions data needed for the Trk::RIO_OnTrack conversion and to access the PrepRawData |
| meas | Pointer to the uncalibrated measurement for conversion |
| typePattern | Bit mask stating whether the measurement is on track or an outlier |
| quality | Chi2 and nDOF contribution from the measurement |
| trkPars | The track parameters on the surface |
| states | Output container into which the new TSOS is pushed |
Dimension 0 measurements are combined measurements!
Correct the ROT according to the surface
Definition at line 380 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Definition at line 249 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
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 |
Definition at line 372 of file ActsToTrkConverterTool.cxx.
|
private |
Helper function to convert a Acts TrackPoxy (which may be const or not) into a Trk::Track.
| ctx | The EventContext to access the current calibration constants |
| track | Reference to the track state proxy for translation |
| fitAuthor | Author that is written in the track summary info |
Definition at line 260 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Converts a const Acts::Track into.
| ctx | EventContext to access the current conditions (alignment, calibrations, etc.) |
| trackProxy | The acts track for conversion |
Definition at line 254 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
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. |
Definition at line 101 of file ActsToTrkConverterTool.cxx.
|
private |
Searches a Prd object from a collection according to the measurement's Identifier and the container's hash.
| ctx | EventContext to retrieve the container from StoreGate |
| key | ReadHandleKey specifying which container is to be fetched |
| prdId | Identifier of the measurement to retrieve |
| hash | The associated IdentifierHash to look-up the collection |
Definition at line 487 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Definition at line 68 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
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 |
Definition at line 93 of file ActsToTrkConverterTool.cxx.
|
private |
Definition at line 139 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the hole states.
Definition at line 123 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the material states (non sensitive) Acts -> Trk conversion.
Definition at line 127 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the outlier states.
Definition at line 125 of file ActsToTrkConverterTool.h.
|
private |
Utility to fetch the geometry, magnetic field and calibration context in the event.
Definition at line 117 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 144 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 114 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 129 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 131 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 134 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 132 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 135 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 133 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 141 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 136 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 142 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 120 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 137 of file ActsToTrkConverterTool.h.
|
private |
Tools needed to create Trk::Tracks from the ACts fit result.
Definition at line 119 of file ActsToTrkConverterTool.h.