Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrototracksToParameters.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PrototracksToParameters.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 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 
18 
19 namespace ActsExamples {
20 
30 class PrototracksToParameters final : public IAlgorithm {
31  public:
32  struct Config {
39  std::string outputSeeds = "seeds-from-prototracks";
41  std::string outputProtoTracks = "remaining-prototracks";
43  std::string outputParameters = "parameters";
44 
47  bool buildTightSeeds = false;
48 
50  std::shared_ptr<const Acts::TrackingGeometry> geometry;
52  std::shared_ptr<const Acts::MagneticFieldProvider> magneticField;
53 
57  std::array<double, 6> initialSigmas = {
62  std::array<double, 6> initialVarInflation = {1., 1., 1., 1., 1., 1.};
66  };
67 
73 
75 
80  ProcessCode execute(const AlgorithmContext& ctx) const final;
81 
83  const Config& config() const { return m_cfg; }
84 
85  private:
87  Acts::BoundSquareMatrix m_covariance = Acts::BoundSquareMatrix::Zero();
88 
91  "OutputProtoTracks"};
93  this, "OutputParameters"};
95  "InputSpacePoints"};
97  "InputProtoTracks"};
98 };
99 
100 } // namespace ActsExamples