ATLAS Offline Software
Loading...
Searching...
No Matches
GaussianSumFitterToolFullFit.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7// ATHENA
9
10// ACTS
11#include "Acts/EventData/BoundTrackParameters.hpp"
13
14// STL
15#include <vector>
16
17namespace ActsTrk {
18
19std::unique_ptr<Trk::Track>
20GaussianSumFitterTool::performFit(const EventContext& ctx,
21 const Acts::GsfOptions<ActsTrk::MutableTrackStateBackend>& gsfOptions,
22 const std::vector<Acts::SourceLink>& trackSourceLinks,
23 const Acts::BoundTrackParameters& initialParams) const
24{
26 ATH_MSG_ERROR("ACTS GSF UseDirectNavigation is true, but standard navigation is used");
27 return nullptr;
28 }
29 if (trackSourceLinks.empty()) {
30 ATH_MSG_DEBUG("input contain measurement but no source link created, probable issue with the converter, reject fit ");
31 return nullptr;
32 }
33
34 ActsTrk::MutableTrackBackend trackContainerBackEnd;
35 ActsTrk::MutableTrackStateBackend multiTrajBackEnd;
36 ActsTrk::MutableTrackContainer tracks( std::move(trackContainerBackEnd),
37 std::move(multiTrajBackEnd));
38 // Perform the fit
39 auto result = m_fitter->fit(trackSourceLinks.begin(), trackSourceLinks.end(),
40 initialParams, gsfOptions, tracks);
41
42 return m_ATLASConverterTool->convertFitResult(ctx, result,
44}
45
46}
47
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
std::unique_ptr< Trk::Track > performFit(const EventContext &ctx, const Acts::GsfOptions< ActsTrk::MutableTrackStateBackend > &gsfOptions, const std::vector< Acts::SourceLink > &trackSourceLinks, const Acts::BoundTrackParameters &initialParams) const
Gaudi::Property< bool > m_useDirectNavigation
ToolHandle< ITrackConverterTool > m_ATLASConverterTool
std::unique_ptr< Fitter > m_fitter
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Acts::VectorMultiTrajectory MutableTrackStateBackend
Acts::TrackContainer< MutableTrackBackend, MutableTrackStateBackend, Acts::detail::ValueHolder > MutableTrackContainer
Acts::VectorTrackContainer MutableTrackBackend