![]() |
ATLAS Offline Software
|
#include <ActsToTrkConverterTool.h>
Public Member Functions | |
| virtual StatusCode | initialize () override |
| virtual SurfacePtr_t | actsSurfaceToTrkSurface (const EventContext &ctx, const Acts::Surface &actsSurface) const override |
| Find the ATLAS surface corresponding to the Acts surface Only work if the Acts surface has an associated detector element (Pixel and SCT). | |
| virtual std::shared_ptr< const Acts::Surface > | trkSurfaceToActsSurface (const Trk::Surface &atlasSurface) const override |
| Find the Acts surface corresponding to the ATLAS surface Use a map associating ATLAS ID to Acts surfaces (Pixel and SCT). | |
| virtual std::vector< Acts::SourceLink > | trkTrackToSourceLinks (const Trk::Track &track) const override |
| Transform an ATLAS track into a vector of SourceLink to be use in the avts tracking Transform both measurement and outliers. | |
| virtual void | toSourceLinks (const std::vector< const Trk::MeasurementBase * > &measSet, std::vector< Acts::SourceLink > &links) const override final |
| virtual void | toSourceLinks (const std::vector< const Trk::PrepRawData * > &prdSet, std::vector< Acts::SourceLink > &links) const override final |
| virtual std::unique_ptr< Trk::Track > | convertFitResult (const EventContext &ctx, TrackFitResult_t &fitResult, const Trk::TrackInfo::TrackFitter fitAuthor, const detail::SourceLinkType slType) const override final |
| virtual const Acts::BoundTrackParameters | trkTrackParametersToActsParameters (const Trk::TrackParameters &atlasParameter, const Acts::GeometryContext &gctx, Trk::ParticleHypothesis=Trk::pion) const override |
| Create Acts TrackParameter from ATLAS one. | |
| virtual std::unique_ptr< Trk::TrackParameters > | actsTrackParametersToTrkParameters (const EventContext &ctx, const Acts::BoundTrackParameters &actsParameter, const Acts::GeometryContext &gctx) const override |
| Create ATLAS TrackParameter from Acts one. | |
| virtual void | trkTrackCollectionToActsTrackContainer (ActsTrk::MutableTrackContainer &tc, const TrackCollection &trackColl, const Acts::GeometryContext &gctx) const override |
| Convert TrackCollection to Acts track container. | |
| virtual std::unique_ptr< TrackCollection > | convertActsToTrkContainer (const EventContext &ctx, const ActsTrk::TrackContainer &trackCont) const override final |
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 detail::SourceLinkType slType) const |
| Helper function to convert a Acts TrackPoxy (which may be const or not) into a Trk::Track. | |
| std::shared_ptr< Trk::SurfaceBounds > | translateBounds (const Acts::SurfaceBounds &bounds) const |
| SurfacePtr_t | translateFreeSurface (const Acts::Surface &surface) const |
| Translate a surface that is not associated with any detector element. | |
| 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< ActsTrk::ITrackingGeometryTool > | m_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"} |
| 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", ""} |
| std::shared_ptr< const Acts::TrackingGeometry > | m_trackingGeometry {} |
| std::unordered_map< Identifier, std::shared_ptr< const Acts::Surface > > | m_actsSurfaceMap {} |
| Gaudi::Property< bool > | m_visualDebugOutput |
| Gaudi::Property< bool > | m_extractMuonSurfaces |
| Gaudi::Property< int > | m_sourceLinkType |
| Source link sepcification used when the ActTrk container -> Trk container conversion is called. | |
| 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"} |
| ToolHandle< Muon::IMuonCompetingClustersOnTrackCreator > | m_compRotCreator {this, "CompetingRotCreator", ""} |
| SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > | m_muonMgrKey {this, "MuonManagerKey", "MuonDetectorManager"} |
| Detector manager to fetch the legacy Trk surfaces. | |
| detail::SourceLinkType | m_slType {detail::SourceLinkType::nTypes} |
| 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 123 of file ActsToTrkConverterTool.h.
|
overridevirtual |
Find the ATLAS surface corresponding to the Acts surface Only work if the Acts surface has an associated detector element (Pixel and SCT).
Produce a new free surface
Definition at line 210 of file ActsToTrkConverterTool.cxx.
|
private |
Definition at line 657 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Create ATLAS TrackParameter from Acts one.
Take care of unit conversion between the two.
Convert to free parameters
Back conversion to bound parameters of the helper plane
Definition at line 363 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 961 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Definition at line 953 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 |
| slType | Source link type to deduct which ATLAS EDM to be used |
Definition at line 863 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Definition at line 849 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 1060 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Definition at line 123 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Definition at line 286 of file ActsToTrkConverterTool.cxx.
|
finaloverridevirtual |
Definition at line 295 of file ActsToTrkConverterTool.cxx.
|
private |
Definition at line 613 of file ActsToTrkConverterTool.cxx.
|
private |
Translate a surface that is not associated with any detector element.
Bounds of the surface are also translated
| surface | Reference to the Acts surface for translation |
Definition at line 182 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Find the Acts surface corresponding to the ATLAS surface Use a map associating ATLAS ID to Acts surfaces (Pixel and SCT).
Definition at line 249 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Convert TrackCollection to Acts track container.
| tc | The track container to fill |
Definition at line 488 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Create Acts TrackParameter from ATLAS one.
Take care of unit conversion between the two.
Definition at line 306 of file ActsToTrkConverterTool.cxx.
|
overridevirtual |
Transform an ATLAS track into a vector of SourceLink to be use in the avts tracking Transform both measurement and outliers.
Definition at line 276 of file ActsToTrkConverterTool.cxx.
|
private |
Definition at line 164 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 193 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the hole states.
Definition at line 178 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the material states (non sensitive) Acts -> Trk conversion.
Definition at line 182 of file ActsToTrkConverterTool.h.
|
private |
Flag to convert the outlier states.
Definition at line 180 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 171 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 203 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 184 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 186 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 189 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 187 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 190 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 188 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 200 of file ActsToTrkConverterTool.h.
|
private |
Detector manager to fetch the legacy Trk surfaces.
Definition at line 196 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 201 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 161 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 198 of file ActsToTrkConverterTool.h.
|
private |
Source link sepcification used when the ActTrk container -> Trk container conversion is called.
Definition at line 175 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 163 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 157 of file ActsToTrkConverterTool.h.
|
private |
Tools needed to create Trk::Tracks from the ACts fit result.
Definition at line 160 of file ActsToTrkConverterTool.h.
|
private |
Definition at line 166 of file ActsToTrkConverterTool.h.