Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AdaptiveMultiVertexFinderAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AdaptiveMultiVertexFinderAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020-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 <map>
39 #include <memory>
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 =
61 
62  using VertexCollection =
63  std::vector<Acts::Vertex<Acts::BoundTrackParameters>>;
64 
65  enum class SeedFinder { GaussianSeeder, AdaptiveGridSeeder };
66 
67  struct Config {
79  std::shared_ptr<Acts::MagneticFieldProvider> bField;
80  };
81 
84 
89  ProcessCode execute(const AlgorithmContext& ctx) const final;
90 
96  template <typename vseeder_t, typename vfinder_t>
99  const vseeder_t& seedFinder) const;
100 
102  const Config& config() const { return m_cfg; }
103 
104  private:
106 
108  m_inputTrackParameters{this, "InputTrackParameters"};
109 
111  this, "InputTrajectories"};
112 
114  this, "OutputProtoVertices"};
115 
117 };
118 } // namespace ActsExamples