Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IterativeVertexFinderAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file IterativeVertexFinderAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-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 
34 
35 #include <algorithm>
36 #include <array>
37 #include <cmath>
38 #include <memory>
39 #include <optional>
40 #include <string>
41 #include <tuple>
42 #include <utility>
43 #include <vector>
44 
45 namespace Acts {
46 class MagneticFieldProvider;
47 } // namespace Acts
48 
49 namespace ActsExamples {
50 struct AlgorithmContext;
51 
53  public:
55  using IPEstimator =
58  using Fitter =
64 
65  using VertexCollection =
66  std::vector<Acts::Vertex<Acts::BoundTrackParameters>>;
67 
68  struct Config {
78  std::shared_ptr<Acts::MagneticFieldProvider> bField;
79  };
80 
83 
88  ProcessCode execute(const AlgorithmContext& ctx) const final;
89 
91  const Config& config() const { return m_cfg; }
92 
93  private:
95 
97  m_inputTrackParameters{this, "InputTrackParameters"};
98 
100  this, "InputTrajectories"};
101 
103  this, "OutputProtoVertices"};
104 
106 };
107 
108 } // namespace ActsExamples