ECCE @ 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, typename track_density_t = GaussianTrackDensity>
36  // Provided vertex fitter type should comply with the VertexFitterConcept
37  // to ensure providing an input track type InputTrack_t
38 
39  // static_assert(VertexFitterConcept<vfitter_t>,
40  // "Vertex fitter does not fulfill vertex fitter concept.");
41 
42  using InputTrack_t = typename vfitter_t::InputTrack_t;
43 
44  public:
46  struct Config {
47  // The track density estimator
48  track_density_t trackDensityEstimator;
49  };
50 
59  const std::vector<const InputTrack_t*>& trackVector,
60  const VertexingOptions<InputTrack_t>& vertexingOptions) const;
61 
65  template <typename T = InputTrack_t,
68  : m_cfg(cfg), m_extractParameters([](T params) { return params; }) {}
69 
71  template <typename T = InputTrack_t,
74  : m_extractParameters([](T params) { return params; }) {}
75 
81  const Config& cfg,
84 
92 
93  private:
95 
101  std::function<BoundParameters(InputTrack_t)> m_extractParameters;
102 };
103 
104 } // namespace Acts
105