ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
11
#include "
Acts/EventData/TrackParameters.hpp
"
12
#include "
Acts/Utilities/Definitions.hpp
"
13
#include "
Acts/Utilities/Result.hpp
"
14
#include "
Acts/Vertexing/GaussianTrackDensity.hpp
"
15
#include "
Acts/Vertexing/Vertex.hpp
"
16
#include "
Acts/Vertexing/VertexFitterConcept.hpp
"
17
#include "
Acts/Vertexing/VertexingOptions.hpp
"
18
19
namespace
Acts {
20
34
template
<
typename
vfitter_t,
typename
track_density_t = GaussianTrackDensity>
35
class
TrackDensityVertexFinder
{
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
58
Result<std::vector<Vertex<InputTrack_t>
>>
find
(
59
const
std::vector<const InputTrack_t*>& trackVector,
60
const
VertexingOptions<InputTrack_t>
& vertexingOptions)
const
;
61
65
template
<
typename
T
=
InputTrack_t
,
66
std::enable_if_t<std::is_same<T, BoundParameters>::value
,
int
> = 0>
67
TrackDensityVertexFinder
(
const
Config
& cfg)
68
:
m_cfg
(cfg),
m_extractParameters
([](
T
params) {
return
params; }) {}
69
71
template
<
typename
T
=
InputTrack_t
,
72
std::enable_if_t<std::is_same<T, BoundParameters>::value
,
int
> = 0>
73
TrackDensityVertexFinder
()
74
:
m_extractParameters
([](
T
params) {
return
params; }) {}
75
80
TrackDensityVertexFinder
(
81
const
Config
& cfg,
82
const
std::function
<
BoundParameters
(
InputTrack_t
)>&
func
)
83
:
m_cfg
(cfg),
m_extractParameters
(
func
) {}
84
89
TrackDensityVertexFinder
(
90
const
std::function
<
BoundParameters
(
InputTrack_t
)>&
func
)
91
:
m_extractParameters
(
func
) {}
92
93
private
:
94
Config
m_cfg
;
95
101
std::function<BoundParameters(InputTrack_t)>
m_extractParameters
;
102
};
103
104
}
// namespace Acts
105
106
#include "
TrackDensityVertexFinder.ipp
"
acts
blob
master
Core
include
Acts
Vertexing
TrackDensityVertexFinder.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:22
using
1.8.2 with
ECCE GitHub integration