Analysis Software
Documentation for sPHENIX simulation 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 
19 namespace Acts {
20 
42 template <typename input_track_t, typename linearizer_t>
44  static_assert(LinearizerConcept<linearizer_t>,
45  "Linearizer does not fulfill linearizer concept.");
46 
47  public:
48  using InputTrack_t = input_track_t;
49  using Propagator_t = typename linearizer_t::Propagator_t;
51 
52  struct State {
57  : linearizerState(std::move(fieldCache)) {}
59  typename Linearizer_t::State linearizerState;
60  };
61 
62  struct Config {
64  int maxIterations = 5;
65  };
66 
70  template <
71  typename T = input_track_t,
74  : m_cfg(cfg), extractParameters([](T params) { return params; }) {}
75 
83  const Config& cfg,
84  std::function<BoundTrackParameters(input_track_t)> func)
85  : m_cfg(cfg), extractParameters(func) {}
86 
96  const std::vector<const input_track_t*>& paramVector,
97  const linearizer_t& linearizer,
98  const VertexingOptions<input_track_t>& vertexingOptions,
99  State& state) const;
100 
101  private:
104 
109  std::function<BoundTrackParameters(input_track_t)> extractParameters;
110 };
111 
112 } // namespace Acts
113