EIC Software
Reference for
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
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
namespace
Acts {
19
33
template
<
typename
input_track_t,
typename
linearizer_t>
34
class
FullBilloirVertexFitter
{
35
static_assert(LinearizerConcept<linearizer_t>,
36
"Linearizer does not fulfill linearizer concept."
);
37
38
public
:
39
using
InputTrack_t
= input_track_t;
40
using
Propagator_t
=
typename
linearizer_t::Propagator_t;
41
using
BField_t
=
typename
linearizer_t::BField_t;
42
using
Linearizer_t
=
linearizer_t
;
43
44
struct
State
{
48
State
(
const
Acts::MagneticFieldContext
& mctx) :
linearizerState
(mctx) {}
50
typename
Linearizer_t::State
linearizerState
;
51
};
52
53
struct
Config
{
55
int
maxIterations
= 5;
56
};
57
61
template
<
62
typename
T
= input_track_t,
63
std::enable_if_t<std::is_same<T, BoundTrackParameters>::value
,
int
> = 0>
64
FullBilloirVertexFitter
(
const
Config
& cfg)
65
:
m_cfg
(cfg),
extractParameters
([](
T
params) {
return
params; }) {}
66
73
FullBilloirVertexFitter
(
74
const
Config
& cfg,
75
std::function<
BoundTrackParameters
(input_track_t)>
func
)
76
:
m_cfg
(cfg),
extractParameters
(
func
) {}
77
86
Result<Vertex<input_track_t>
>
fit
(
87
const
std::vector<const input_track_t*>& paramVector,
88
const
linearizer_t
& linearizer,
89
const
VertexingOptions<input_track_t>
& vertexingOptions,
90
State& state)
const
;
91
92
private
:
94
Config
m_cfg
;
95
102
std::function<BoundTrackParameters(input_track_t)>
extractParameters
;
103
};
104
105
}
// namespace Acts
106
107
#include "
FullBilloirVertexFitter.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
FullBilloirVertexFitter.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration