Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFittingAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackFittingAlgorithm.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 
21 
22 #include <memory>
23 #include <string>
24 
25 namespace Acts {
26 class TrackingGeometry;
27 }
28 
29 namespace ActsExamples {
30 class MeasurementCalibrator;
31 class TrackFitterFunction;
32 struct AlgorithmContext;
33 
34 class TrackFittingAlgorithm final : public IAlgorithm {
35  public:
36  struct Config {
50  std::shared_ptr<TrackFitterFunction> fit;
52  int pickTrack = -1;
53  // Type erased calibrator for the measurements
54  std::shared_ptr<MeasurementCalibrator> calibrator;
55  };
56 
62 
67  ActsExamples::ProcessCode execute(const AlgorithmContext& ctx) const final;
68 
70  const Config& config() const { return m_cfg; }
71 
72  private:
74 
76  "InputMeasurements"};
78  this, "InputSourceLinks"};
80  "InputProtoTracks"};
82  this, "InputInitialTrackParameters"};
83 
85 
87 };
88 
89 } // namespace ActsExamples