EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackDensityVertexFinder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackDensityVertexFinder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 
34 template <typename vfitter_t,
35  typename track_density_t =
36  GaussianTrackDensity<typename vfitter_t::InputTrack_t>>
38  // Provided vertex fitter type should comply with the VertexFitterConcept
39  // to ensure providing an input track type InputTrack_t
40 
41  // static_assert(VertexFitterConcept<vfitter_t>,
42  // "Vertex fitter does not fulfill vertex fitter concept.");
43 
44  using InputTrack_t = typename vfitter_t::InputTrack_t;
45 
46  public:
48  struct Config {
49  // The track density estimator
50  track_density_t trackDensityEstimator;
51  };
52 
54  struct State {};
55 
65  const std::vector<const InputTrack_t*>& trackVector,
66  const VertexingOptions<InputTrack_t>& vertexingOptions,
67  State& state) const;
68 
72  template <
73  typename T = InputTrack_t,
76  : m_cfg(cfg), m_extractParameters([](T params) { return params; }) {}
77 
80  template <
81  typename T = InputTrack_t,
84  : m_extractParameters([](T params) { return params; }) {}
85 
93  const Config& cfg,
94  const std::function<BoundTrackParameters(InputTrack_t)>& func)
96 
103  const std::function<BoundTrackParameters(InputTrack_t)>& func)
105 
106  private:
108 
114  std::function<BoundTrackParameters(InputTrack_t)> m_extractParameters;
115 };
116 
117 } // namespace Acts
118