ATLAS Offline Software
Loading...
Searching...
No Matches
MsTrackFindingAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONTRACKFINIDNGALGS_MSTRACKFINIDNGALG_H
5#define MUONTRACKFINIDNGALGS_MSTRACKFINIDNGALG_H
6
8
12
16
19
24
28
34
35
36namespace MuonR4{
48 public:
49 using AthReentrantAlgorithm::AthReentrantAlgorithm;
50
54 virtual StatusCode initialize() override final;
56 virtual StatusCode execute(const EventContext& ctx) const override final;
58 using OptBoundPars_t = Acts::Result<Acts::BoundTrackParameters>;
60 using MeasVec_t = std::vector<const xAOD::UncalibratedMeasurement*>;
62 using PseudoMeasHandle_t = ActsTrk::AuxiliaryMeasurementHandler::MeasurementProvider;
63 private:
74 bool fitSeedCandidate(const Acts::GeometryContext& tgContext,
75 const Acts::MagneticFieldContext& mfContext,
76 const Acts::CalibrationContext& calContext,
77 const MsTrackSeed& seed,
78 ActsTrk::MutableTrackContainer& outContainer,
79 PseudoMeasHandle_t& auxMeasContainer) const;
80
81 template <std::size_t N>
82 std::unique_ptr<ActsTrk::MutableTrackContainer>
83 fitBestCombination(const Acts::GeometryContext& tgContext,
84 const Acts::MagneticFieldContext& mfContext,
85 const Acts::CalibrationContext& calContext,
86 const MsTrackSeed& seed,
87 std::optional<Acts::BoundTrackParameters> startPars,
88 PseudoMeasHandle_t& auxMeasContainer) const;
96 MeasVec_t collectMeasurements(const Acts::GeometryContext& tgContext,
97 const Acts::BoundTrackParameters& startPars,
98 const MsTrackSeed& seed,
99 PseudoMeasHandle_t& auxMeasContainer) const;
107 bool goodFit(const EventContext& ctx,
108 std::unique_ptr<ActsTrk::MutableTrackContainer>& fitResult,
109 const std::size_t reqStations) const;
114 bool expressAtCaloExit(const EventContext& ctx,
115 ActsTrk::MutableTrackContainer::TrackProxy track) const;
117 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
121 SG::WriteHandleKey<MsTrackSeedContainer> m_msTrkSeedKey{this, "MsTrkSeedKey", "MsTrackSeeds"};
123 ToolHandle<ITrackSeedingTool> m_seedingTool{this, "SeedingTool", ""};
125 ToolHandle<ActsTrk::IFitterTool> m_trackFitTool{this, "FittingTool", ""};
127 ToolHandle<ISpacePointCalibrator> m_calibTool{this, "Calibrator", ""};
129 ToolHandle<ActsTrk::IExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool" ,"" };
131 ServiceHandle<ActsTrk::ITrackingGeometrySvc> m_trackingGeometrySvc{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};
133 Gaudi::Property<bool> m_expressAtMsEntrance{this, "expressAtMsEntrance", true};
135 Gaudi::Property<bool> m_ignoreFailedMsEntrance{this, "ignoreFailedExtpMsEntrance", true};
141 ToolHandle<MuonValR4::ITrackVisualizationTool> m_visualizationTool{this, "VisualizationTool", ""};
143 ToolHandle<MuonR4::ITrackSummaryTool> m_summaryTool{this, "SummaryTool" , ""};
145 SG::WriteHandleKey<ActsTrk::TrackContainer> m_writeKey{this, "TrackWriteKey", "MuonMsTracks"};
146
147 };
148}
149
150#endif
Property holding a SG store/key/clid from which a WriteHandle is made.
Utility class to handle the creation of the Auxiliary measurement used in an Acts track fit This clas...
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
An algorithm that can be simultaneously executed in multiple threads.
The MSTrackFindingAlg combines the built MS segments to track seeds and then attempts to fit the hits...
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Service handle to the tracking geometry service.
bool expressAtCaloExit(const EventContext &ctx, ActsTrk::MutableTrackContainer::TrackProxy track) const
Extrapolate the tracks back to the calo exit and update the track parameters accoringly.
MeasVec_t collectMeasurements(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &startPars, const MsTrackSeed &seed, PseudoMeasHandle_t &auxMeasContainer) const
Collect all measurements from the segments associated with the seed If there are less than 2 phi meas...
ToolHandle< ITrackSeedingTool > m_seedingTool
The track seeding tool to construct the seed candidates and to estimate the initial parameters.
Acts::Result< Acts::BoundTrackParameters > OptBoundPars_t
Abrivation for the result of bound track parameters.
std::vector< const xAOD::UncalibratedMeasurement * > MeasVec_t
Abrivation for a vector of measurements.
std::unique_ptr< ActsTrk::MutableTrackContainer > fitBestCombination(const Acts::GeometryContext &tgContext, const Acts::MagneticFieldContext &mfContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed, std::optional< Acts::BoundTrackParameters > startPars, PseudoMeasHandle_t &auxMeasContainer) const
ActsTrk::AuxiliaryMeasurementHandler m_pseudoMeasuremntCreator
Utility to impose external constraints in the fit.
SG::WriteHandleKey< ActsTrk::TrackContainer > m_writeKey
Key to the output track container.
SG::WriteHandleKey< MsTrackSeedContainer > m_msTrkSeedKey
Temporary container write handle to push the seeds to store gate for later efficiency analysis.
virtual StatusCode execute(const EventContext &ctx) const override final
Standard algorithm execution hook.
bool fitSeedCandidate(const Acts::GeometryContext &tgContext, const Acts::MagneticFieldContext &mfContext, const Acts::CalibrationContext &calContext, const MsTrackSeed &seed, ActsTrk::MutableTrackContainer &outContainer, PseudoMeasHandle_t &auxMeasContainer) const
Attempts to fit the track seed candidate to a full track and returns whether the fit succeeded.
ToolHandle< ISpacePointCalibrator > m_calibTool
Calibration tool to fill the track states.
ToolHandle< MuonValR4::ITrackVisualizationTool > m_visualizationTool
Visualization tool to debug the track finding.
const MuonGMR4::MuonDetectorManager * m_detMgr
Pointer to the MuonDetectorManager.
ToolHandle< ActsTrk::IFitterTool > m_trackFitTool
Track fitting tool.
virtual StatusCode initialize() override final
Standard algorithm hook to setup the extrapolator, retrieve the tools and declare algorithm's data de...
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
Track extrapolation tool.
Gaudi::Property< bool > m_expressAtMsEntrance
Propagate the track at the MS entry and express its parameters.
bool goodFit(const EventContext &ctx, std::unique_ptr< ActsTrk::MutableTrackContainer > &fitResult, const std::size_t reqStations) const
Evaluate whether the fit result is acceptable in terms of chi2 and whether the fitted track contain...
ActsTrk::ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Gaudi::Property< bool > m_ignoreFailedMsEntrance
Ignore failed track extrapolations to the entrance.
ActsTrk::AuxiliaryMeasurementHandler::MeasurementProvider PseudoMeasHandle_t
Auxiliary object to create the pseudo measurements.
ToolHandle< MuonR4::ITrackSummaryTool > m_summaryTool
Handle to the muon summary tool.
Property holding a SG store/key/clid from which a WriteHandle is made.
STL class.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
constexpr std::size_t N
This header ties the generic definitions in this package.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private
Definition testRead.cxx:27