Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFitterFunction.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackFitterFunction.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019-2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
27 
28 namespace ActsExamples {
29 
34  public:
36 
38  std::reference_wrapper<const Acts::GeometryContext> geoContext;
39  std::reference_wrapper<const Acts::MagneticFieldContext> magFieldContext;
40  std::reference_wrapper<const Acts::CalibrationContext> calibrationContext;
41  const Acts::Surface* referenceSurface = nullptr;
43  };
44 
45  virtual ~TrackFitterFunction() = default;
46 
47  virtual TrackFitterResult operator()(const std::vector<Acts::SourceLink>&,
48  const TrackParameters&,
49  const GeneralFitterOptions&,
51  TrackContainer&) const = 0;
52 
53  virtual TrackFitterResult operator()(const std::vector<Acts::SourceLink>&,
54  const TrackParameters&,
55  const GeneralFitterOptions&,
56  const RefittingCalibrator&,
57  const std::vector<const Acts::Surface*>&,
58  TrackContainer&) const = 0;
59 };
60 
63 std::shared_ptr<TrackFitterFunction> makeKalmanFitterFunction(
64  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry,
65  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField,
66  bool multipleScattering = true, bool energyLoss = true,
67  double reverseFilteringMomThreshold = 0.0,
68  Acts::FreeToBoundCorrection freeToBoundCorrection =
70  const Acts::Logger& logger = *Acts::getDefaultLogger("Kalman",
72 
76 
87 std::shared_ptr<TrackFitterFunction> makeGsfFitterFunction(
88  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry,
89  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField,
90  BetheHeitlerApprox betheHeitlerApprox, std::size_t maxComponents,
91  double weightCutoff, Acts::MixtureReductionMethod finalReductionMethod,
92  bool abortOnError, bool disableAllMaterialHandling,
93  const Acts::Logger& logger);
94 
103 std::shared_ptr<TrackFitterFunction> makeGlobalChiSquareFitterFunction(
104  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry,
105  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField,
106  bool multipleScattering = true, bool energyLoss = true,
107  Acts::FreeToBoundCorrection freeToBoundCorrection =
109  const Acts::Logger& logger = *Acts::getDefaultLogger("Gx2f",
111 
112 } // namespace ActsExamples