ATLAS Offline Software
GaussianSumFitterToolFullFit.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 // ATHENA
9 
10 // ACTS
11 #include "Acts/EventData/TrackParameters.hpp"
13 
14 // STL
15 #include <vector>
16 
17 namespace ActsTrk {
18 
19 std::unique_ptr<Trk::Track>
20 GaussianSumFitterTool::performFit(const EventContext& ctx,
21  const Acts::GeometryContext& tgContext,
22  const Acts::GsfOptions<ActsTrk::MutableTrackStateBackend>& gsfOptions,
23  const std::vector<Acts::SourceLink>& trackSourceLinks,
24  const Acts::BoundTrackParameters& initialParams) const
25 {
27  ATH_MSG_ERROR("ACTS GSF UseDirectNavigation is true, but standard navigation is used");
28  return nullptr;
29  }
30  if (trackSourceLinks.empty()) {
31  ATH_MSG_DEBUG("input contain measurement but no source link created, probable issue with the converter, reject fit ");
32  return nullptr;
33  }
34 
36  // Perform the fit
37  auto result = m_fitter->fit(trackSourceLinks.begin(), trackSourceLinks.end(),
38  initialParams, gsfOptions, tracks);
39 
40  // Convert
41  if (not result.ok()) return nullptr;
42  return makeTrack(ctx, tgContext, tracks, result);
43 }
44 
45 }
46 
get_generator_info.result
result
Definition: get_generator_info.py:21
ActsTrk::GaussianSumFitterTool::performFit
std::unique_ptr< Trk::Track > performFit(const EventContext &ctx, const Acts::GeometryContext &tgContext, const Acts::GsfOptions< ActsTrk::MutableTrackStateBackend > &gsfOptions, const std::vector< Acts::SourceLink > &trackSourceLinks, const Acts::BoundTrackParameters &initialParams) const
Definition: GaussianSumFitterToolFullFit.cxx:20
GaussianSumFitterTool.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TrackSummary.h
ActsTrk::GaussianSumFitterTool::m_useDirectNavigation
Gaudi::Property< bool > m_useDirectNavigation
Definition: GaussianSumFitterTool.h:154
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:54
ActsTrk::GaussianSumFitterTool::m_fitter
std::unique_ptr< Fitter > m_fitter
Definition: GaussianSumFitterTool.h:174
ActsTrk::GaussianSumFitterTool::makeTrack
std::unique_ptr< Trk::Track > makeTrack(const EventContext &ctx, const Acts::GeometryContext &tgContext, ActsTrk::MutableTrackContainer &tracks, Acts::Result< typename ActsTrk::MutableTrackContainer::TrackProxy, std::error_code > &fitResult) const
Definition: GaussianSumFitterTool.cxx:398
ActsTrk::MutableTrackContainer
Definition: TrackContainer.h:122
TrackContainer.h