Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackParamsEstimationAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackParamsEstimationAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 
25 
26 #include <algorithm>
27 #include <array>
28 #include <functional>
29 #include <memory>
30 #include <string>
31 #include <vector>
32 
33 namespace Acts {
34 class TrackingGeometry;
35 class MagneticFieldProvider;
36 } // namespace Acts
37 
38 namespace ActsExamples {
39 struct AlgorithmContext;
40 
52  public:
53  struct Config {
67  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry;
69  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField;
73  std::array<double, 6> initialSigmas = {
78  std::array<double, 6> initialVarInflation = {1., 1., 1., 1., 1., 1.};
82  };
83 
89 
94  ProcessCode execute(const AlgorithmContext& ctx) const override;
95 
97  const Config& config() const { return m_cfg; }
98 
99  private:
101 
104  Acts::BoundSquareMatrix m_covariance = Acts::BoundSquareMatrix::Zero();
105 
108 
110  this, "OutputTrackParameters"};
113 };
114 
115 } // namespace ActsExamples