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
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
11
#include "
Acts/Propagator/EigenStepper.hpp
"
12
#include "
Acts/Propagator/Propagator.hpp
"
13
#include "
Acts/Utilities/Result.hpp
"
14
#include "
Acts/Vertexing/HelicalTrackLinearizer.hpp
"
15
#include "
Acts/Vertexing/LinearizerConcept.hpp
"
16
#include "
Acts/Vertexing/Vertex.hpp
"
17
#include "
Acts/Vertexing/VertexingOptions.hpp
"
18
19
namespace
Acts {
20
42
template
<
typename
input_track_t,
typename
linearizer_t>
43
class
FullBilloirVertexFitter
{
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;
50
using
Linearizer_t
=
linearizer_t
;
51
52
struct
State
{
56
State
(
MagneticFieldProvider::Cache
fieldCache)
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,
72
std::enable_if_t<std::is_same<T, BoundTrackParameters>::value
,
int
> = 0>
73
FullBilloirVertexFitter
(
const
Config
&
cfg
)
74
:
m_cfg
(cfg),
extractParameters
([](
T
params) {
return
params; }) {}
75
82
FullBilloirVertexFitter
(
83
const
Config
&
cfg
,
84
std::function<
BoundTrackParameters
(input_track_t)> func)
85
:
m_cfg
(cfg),
extractParameters
(func) {}
86
95
Result<Vertex<input_track_t>
>
fit
(
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
:
103
Config
m_cfg
;
104
109
std::function<BoundTrackParameters(input_track_t)>
extractParameters
;
110
};
111
112
}
// namespace Acts
113
114
#include "
FullBilloirVertexFitter.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
FullBilloirVertexFitter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:35
using
1.8.2 with
sPHENIX GitHub integration