Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
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/Definitions/Algebra.hpp
"
12
#include "
Acts/EventData/TrackParameters.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,
35
typename
track_density_t =
36
GaussianTrackDensity<typename vfitter_t::InputTrack_t>>
37
class
TrackDensityVertexFinder
{
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
64
Result<std::vector<Vertex<InputTrack_t>
>>
find
(
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
,
74
std::enable_if_t<std::is_same<T, BoundTrackParameters>::value
,
int
> = 0>
75
TrackDensityVertexFinder
(
const
Config
&
cfg
)
76
:
m_cfg
(cfg),
m_extractParameters
([](
T
params) {
return
params; }) {}
77
80
template
<
81
typename
T
=
InputTrack_t
,
82
std::enable_if_t<std::is_same<T, BoundTrackParameters>::value
,
int
> = 0>
83
TrackDensityVertexFinder
()
84
:
m_extractParameters
([](
T
params) {
return
params; }) {}
85
92
TrackDensityVertexFinder
(
93
const
Config
&
cfg
,
94
const
std::function<
BoundTrackParameters
(
InputTrack_t
)>& func)
95
:
m_cfg
(cfg),
m_extractParameters
(func) {}
96
102
TrackDensityVertexFinder
(
103
const
std::function<
BoundTrackParameters
(
InputTrack_t
)>& func)
104
:
m_extractParameters
(func) {}
105
106
private
:
107
Config
m_cfg
;
108
112
std::function<BoundTrackParameters(InputTrack_t)>
m_extractParameters
;
113
};
114
115
}
// namespace Acts
116
117
#include "
TrackDensityVertexFinder.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
TrackDensityVertexFinder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:35
using
1.8.2 with
sPHENIX GitHub integration