ATLAS Offline Software
Loading...
Searching...
No Matches
GaussianSumFitterToolDirectFit.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/Surfaces/Surface.hpp"
12#include "Acts/EventData/VectorMultiTrajectory.hpp"
13#include "Acts/EventData/VectorTrackContainer.hpp"
14#include "Acts/EventData/BoundTrackParameters.hpp"
16
17// STL
18#include <vector>
19
20namespace ActsTrk {
21
22std::unique_ptr<Trk::Track>
24 const Acts::GsfOptions<ActsTrk::MutableTrackStateBackend>& gsfOptions,
25 const std::vector<Acts::SourceLink>& trackSourceLinks,
26 const Acts::BoundTrackParameters& initialParams,
27 const std::vector<const Acts::Surface*>& surfaces) const
28{
30 ATH_MSG_ERROR("ACTS GSF UseDirectNavigation is false, but direct navigation is used");
31 return nullptr;
32 }
33 if (trackSourceLinks.empty()) {
34 ATH_MSG_DEBUG("input contain measurement but no source link created, probable issue with the converter, reject fit ");
35 return nullptr;
36 }
37
38
39 ActsTrk::MutableTrackBackend trackContainerBackEnd;
40 ActsTrk::MutableTrackStateBackend multiTrajBackEnd;
41 ActsTrk::MutableTrackContainer tracks( std::move(trackContainerBackEnd),
42 std::move(multiTrajBackEnd));
43 auto result = m_directFitter->fit(trackSourceLinks.begin(),
44 trackSourceLinks.end(),
45 initialParams,
46 gsfOptions,
47 surfaces,
48 tracks);
49
50 return m_ATLASConverterTool->convertFitResult(ctx, result,
52}
53
54}
55
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Property< bool > m_useDirectNavigation
ToolHandle< ITrackConverterTool > m_ATLASConverterTool
std::unique_ptr< DirectFitter > m_directFitter
std::unique_ptr< Trk::Track > performDirectFit(const EventContext &ctx, const Acts::GsfOptions< ActsTrk::MutableTrackStateBackend > &gsfOptions, const std::vector< Acts::SourceLink > &trackSourceLinks, const Acts::BoundTrackParameters &initialParams, const std::vector< const Acts::Surface * > &surfaces) const
@ 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