Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFittingAlgorithmFunctionsGsf.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackFittingAlgorithmFunctionsGsf.cc
2 
3 std::shared_ptr<ActsTrackFittingAlgorithm::TrackFitterFunction>
5  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry,
6  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField,
7  BetheHeitlerApprox betheHeitlerApprox, std::size_t maxComponents,
8  double weightCutoff,
9  Acts::MixtureReductionMethod finalReductionMethod, bool abortOnError,
10  bool disableAllMaterialHandling, const Acts::Logger& logger)
11 {
12  MultiStepper stepper(magneticField,
13  logger.cloneWithSuffix("GSFStep"));
14  const auto& geo = *trackingGeometry;
15 
16  // Standard fitter
17  Acts::Navigator::Config cfg{trackingGeometry};
18  cfg.resolvePassive = false;
19  cfg.resolveMaterial = true;
20  cfg.resolveSensitive = true;
21  Acts::Navigator navigator(cfg, logger.cloneWithSuffix("GSFNavigator"));
23  logger.cloneWithSuffix("GSFPropagator"));
24  Fitter trackFitter(std::move(propagator),
25  BetheHeitlerApprox(betheHeitlerApprox),
26  logger.cloneWithSuffix("GSFFitter"));
27 
28  // build the fitter functions. owns the fitter object.
29  auto fitterFunction = std::make_shared<GsfFitterFunctionImpl>(
30  std::move(trackFitter), geo);
31  fitterFunction->maxComponents = maxComponents;
32  fitterFunction->weightCutoff = weightCutoff;
33  fitterFunction->abortOnError = abortOnError;
34  fitterFunction->disableAllMaterialHandling = disableAllMaterialHandling;
35  fitterFunction->reductionMethod = finalReductionMethod;
36 
37  return fitterFunction;
38 }