EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FullBilloirVertexFitter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FullBilloirVertexFitter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 namespace Acts {
19 
33 template <typename input_track_t, typename linearizer_t>
35  static_assert(LinearizerConcept<linearizer_t>,
36  "Linearizer does not fulfill linearizer concept.");
37 
38  public:
39  using InputTrack_t = input_track_t;
40  using Propagator_t = typename linearizer_t::Propagator_t;
41  using BField_t = typename linearizer_t::BField_t;
43 
44  struct State {
50  typename Linearizer_t::State linearizerState;
51  };
52 
53  struct Config {
55  int maxIterations = 5;
56  };
57 
61  template <
62  typename T = input_track_t,
65  : m_cfg(cfg), extractParameters([](T params) { return params; }) {}
66 
74  const Config& cfg,
75  std::function<BoundTrackParameters(input_track_t)> func)
77 
87  const std::vector<const input_track_t*>& paramVector,
88  const linearizer_t& linearizer,
89  const VertexingOptions<input_track_t>& vertexingOptions,
90  State& state) const;
91 
92  private:
95 
102  std::function<BoundTrackParameters(input_track_t)> extractParameters;
103 };
104 
105 } // namespace Acts
106