4#ifndef MUONTRACKFINIDNGALGS_MSTRACKFINIDNGALG_H
5#define MUONTRACKFINIDNGALGS_MSTRACKFINIDNGALG_H
49 using AthReentrantAlgorithm::AthReentrantAlgorithm;
54 virtual StatusCode
initialize() override final;
75 const Acts::MagneticFieldContext& mfContext,
76 const Acts::CalibrationContext& calContext,
78 ActsTrk::MutableTrackContainer& outContainer,
81 template <
std::
size_t N>
84 const Acts::MagneticFieldContext& mfContext,
85 const Acts::CalibrationContext& calContext,
87 std::optional<
Acts::BoundTrackParameters> startPars,
97 const Acts::BoundTrackParameters& startPars,
115 ActsTrk::MutableTrackContainer::TrackProxy track)
const;
127 ToolHandle<ISpacePointCalibrator>
m_calibTool{
this,
"Calibrator",
""};
143 ToolHandle<MuonR4::ITrackSummaryTool>
m_summaryTool{
this,
"SummaryTool" ,
""};
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.
virtual ~MsTrackFindingAlg()
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.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
This class is not to needed in AthSimulation.
This header ties the generic definitions in this package.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.