ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEventCnv
src
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
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
ActsToolInterfaces/IFitterTool.h
"
11
12
#include "
ActsEvent/ContextUtility.h
"
13
#include "
TrkFitterInterfaces/ITrackFitter.h
"
14
#include "
ActsToolInterfaces/ITrackConverterTool.h
"
15
#include "
ActsGeometryInterfaces/IGeometryRealmConvTool.h
"
16
17
namespace
ActsTrk
{
28
29
class
ActsToTrkFitterWrapTool
:
public
extends<AthAlgTool, Trk::ITrackFitter> {
30
31
public
:
32
using
base_class::base_class;
33
~ActsToTrkFitterWrapTool
() =
default
;
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"
,
""
};
155
ContextUtility
m_ctxProvider
{
this
};
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
AthAlgTool.h
ContextUtility.h
IFitterTool.h
IGeometryRealmConvTool.h
ITrackConverterTool.h
ITrackFitter.h
ActsTrk::ActsToTrkFitterWrapTool
Tool wrapping an ACTS track fitter tool to expose the Trk::ITrackFitter interface.
Definition
ActsToTrkFitterWrapTool.h:29
ActsTrk::ActsToTrkFitterWrapTool::m_option_seedCovarianceScale
Gaudi::Property< double > m_option_seedCovarianceScale
Property for the seed covariance scale factor.
Definition
ActsToTrkFitterWrapTool.h:157
ActsTrk::ActsToTrkFitterWrapTool::~ActsToTrkFitterWrapTool
~ActsToTrkFitterWrapTool()=default
ActsTrk::ActsToTrkFitterWrapTool::initialize
StatusCode initialize() override
Definition
ActsToTrkFitterWrapTool.cxx:15
ActsTrk::ActsToTrkFitterWrapTool::m_actsFitterTool
ToolHandle< IFitterTool > m_actsFitterTool
The underlying Acts fitter tool.
Definition
ActsToTrkFitterWrapTool.h:148
ActsTrk::ActsToTrkFitterWrapTool::m_ctxProvider
ContextUtility m_ctxProvider
Auxiliary class to access the magnetic field, geometry and calibration context.
Definition
ActsToTrkFitterWrapTool.h:155
ActsTrk::ActsToTrkFitterWrapTool::fit
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.
Definition
ActsToTrkFitterWrapTool.cxx:24
ActsTrk::ActsToTrkFitterWrapTool::m_ATLASConverterTool
ToolHandle< ITrackConverterTool > m_ATLASConverterTool
Track converter tool for converting Acts tracks to ATLAS tracks.
Definition
ActsToTrkFitterWrapTool.h:151
ActsTrk::ActsToTrkFitterWrapTool::fitImpl
std::unique_ptr< Trk::Track > fitImpl(const EventContext &ctx, const std::vector< Acts::SourceLink > &measColl, const Acts::BoundTrackParameters ¶ms) const
Implementation of the logic for fitting a track to a set of measurements passed as source links.
Definition
ActsToTrkFitterWrapTool.cxx:161
ActsTrk::ActsToTrkFitterWrapTool::reFitImpl
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...
Definition
ActsToTrkFitterWrapTool.cxx:123
ActsTrk::ActsToTrkFitterWrapTool::m_geometryConvTool
PublicToolHandle< IGeometryRealmConvTool > m_geometryConvTool
Geometry realm converter tool.
Definition
ActsToTrkFitterWrapTool.h:153
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Trk::MeasurementSet
std::vector< const MeasurementBase * > MeasurementSet
vector of fittable measurements
Definition
FitterTypes.h:30
Trk::RunOutlierRemoval
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition
FitterTypes.h:22
Trk::ParticleHypothesis
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.
Definition
ParticleHypothesis.h:28
Trk::nonInteracting
@ nonInteracting
Definition
ParticleHypothesis.h:28
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
Trk::PrepRawDataSet
std::vector< const PrepRawData * > PrepRawDataSet
vector of clusters and drift circles
Definition
FitterTypes.h:26
Generated on
for ATLAS Offline Software by
1.17.0