ATLAS Offline Software
Loading...
Searching...
No Matches
ActsToTrkFitterWrapTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSEVENTCNV_ActsToTrkWrappingTool_H
6#define ACTSEVENTCNV_ActsToTrkWrappingTool_H
7
8// ATHENA
11
16
17namespace ActsTrk {
28
29class ActsToTrkFitterWrapTool : public extends<AthAlgTool, Trk::ITrackFitter> {
30
31 public:
32 using base_class::base_class;
34
35 StatusCode initialize() override;
36
43 virtual std::unique_ptr<Trk::Track>
44 fit (const EventContext& ctx,
45 const Trk::Track& track,
46 const Trk::RunOutlierRemoval runOutlier = false,
47 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
48
56 virtual std::unique_ptr<Trk::Track>
57 fit(const EventContext& ctx,
58 const Trk::Track& track,
59 const Trk::MeasurementSet& measSet,
60 const Trk::RunOutlierRemoval runOutlier = false,
61 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
62
70 virtual std::unique_ptr<Trk::Track>
71 fit(const EventContext& ctx,
72 const Trk::Track& track,
73 const Trk::PrepRawDataSet& prepRawSet,
74 const Trk::RunOutlierRemoval runOutlier = false,
75 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
76
84 virtual std::unique_ptr<Trk::Track>
85 fit(const EventContext& ctx,
86 const Trk::PrepRawDataSet& prepRawSet,
87 const Trk::TrackParameters& params,
88 const Trk::RunOutlierRemoval runOutlier = false,
89 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
90
98 virtual std::unique_ptr<Trk::Track>
99 fit(const EventContext& ctx,
100 const Trk::MeasurementSet& measSet,
101 const Trk::TrackParameters& params,
102 const Trk::RunOutlierRemoval runOutlier = false,
103 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
104
112 virtual std::unique_ptr<Trk::Track>
113 fit(const EventContext& ctx,
114 const Trk::Track& track1,
115 const Trk::Track& track2,
116 const Trk::RunOutlierRemoval runOutlier = false,
117 const Trk::ParticleHypothesis hypothesis = Trk::nonInteracting) const override;
118
119 private:
128 std::unique_ptr<Trk::Track>
129 reFitImpl(const EventContext& ctx,
130 const Trk::Track& track,
131 const std::vector<Acts::SourceLink>& measColl,
132 const Trk::ParticleHypothesis hypothesis,
133 const bool useScaledCov = false) const;
134
141 std::unique_ptr<Trk::Track>
142 fitImpl(const EventContext& ctx,
143 const std::vector<Acts::SourceLink>& measColl,
144 const Acts::BoundTrackParameters& params) const;
145
146
148 ToolHandle<IFitterTool> m_actsFitterTool{this, "ActsFitterTool", ""};
149
151 ToolHandle<ITrackConverterTool> m_ATLASConverterTool{this, "ATLASConverterTool", ""};
153 PublicToolHandle<IGeometryRealmConvTool> m_geometryConvTool{this, "GeometryRealmConvTool", ""};
157 Gaudi::Property< double > m_option_seedCovarianceScale {this, "SeedCovarianceScale", 1.,
158 "Scale factor for the input seed covariance when doing refitting"};
159
160};
161
162}
163#endif
Tool wrapping an ACTS track fitter tool to expose the Trk::ITrackFitter interface.
Gaudi::Property< double > m_option_seedCovarianceScale
Property for the seed covariance scale factor.
ToolHandle< IFitterTool > m_actsFitterTool
The underlying Acts fitter tool.
ContextUtility m_ctxProvider
Auxiliary class to access the magnetic field, geometry and calibration context.
virtual std::unique_ptr< Trk::Track > fit(const EventContext &ctx, const Trk::Track &track, const Trk::RunOutlierRemoval runOutlier=false, const Trk::ParticleHypothesis hypothesis=Trk::nonInteracting) const override
Re-fit a track using the ACTS fitter tool.
ToolHandle< ITrackConverterTool > m_ATLASConverterTool
Track converter tool for converting Acts tracks to ATLAS tracks.
std::unique_ptr< Trk::Track > fitImpl(const EventContext &ctx, const std::vector< Acts::SourceLink > &measColl, const Acts::BoundTrackParameters &params) const
Implementation of the logic for fitting a track to a set of measurements passed as source links.
std::unique_ptr< Trk::Track > reFitImpl(const EventContext &ctx, const Trk::Track &track, const std::vector< Acts::SourceLink > &measColl, const Trk::ParticleHypothesis hypothesis, const bool useScaledCov=false) const
Implementation of the logic for re-fitting a track adding a set of measurements passed as source link...
PublicToolHandle< IGeometryRealmConvTool > m_geometryConvTool
Geometry realm converter tool.
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::vector< const MeasurementBase * > MeasurementSet
vector of fittable measurements
Definition FitterTypes.h:30
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition FitterTypes.h:22
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.
ParametersBase< TrackParametersDim, Charged > TrackParameters
std::vector< const PrepRawData * > PrepRawDataSet
vector of clusters and drift circles
Definition FitterTypes.h:26