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
KalmanVertexUpdater.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file KalmanVertexUpdater.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/Utilities/Result.hpp
"
12
#include "
Acts/Vertexing/TrackAtVertex.hpp
"
13
#include "
Acts/Vertexing/Vertex.hpp
"
14
15
namespace
Acts {
16
namespace
KalmanVertexUpdater {
17
24
26
struct
MatrixCache
{
27
Vector3D
newVertexPos
= Vector3D::Zero();
28
ActsSymMatrixD<3>
newVertexCov
=
ActsSymMatrixD<3>::Zero
();
29
ActsSymMatrixD<3>
newVertexWeight
=
ActsSymMatrixD<3>::Zero
();
30
ActsSymMatrixD<3>
oldVertexWeight
=
ActsSymMatrixD<3>::Zero
();
31
ActsSymMatrixD<3>
momWeightInv
=
ActsSymMatrixD<3>::Zero
();
32
};
33
42
template
<
typename
input_track_t>
43
void
updateVertexWithTrack
(
Vertex<input_track_t>
&
vtx
,
44
TrackAtVertex<input_track_t>
& trk);
45
55
template
<
typename
input_track_t>
56
void
updatePosition
(
const
Acts::Vertex<input_track_t>
&
vtx
,
57
const
Acts::LinearizedTrack
& linTrack,
double
trackWeight,
58
int
sign
,
MatrixCache
& matrixCache);
59
60
namespace
detail {
61
68
template
<
typename
input_track_t>
69
double
vertexPositionChi2
(
const
Vertex<input_track_t>
& oldVtx,
70
const
MatrixCache
& matrixCache);
71
79
template
<
typename
input_track_t>
80
double
trackParametersChi2
(
const
LinearizedTrack
& linTrack,
81
const
MatrixCache
& matrixCache);
82
89
template
<
typename
input_track_t>
90
void
update
(
Vertex<input_track_t>
&
vtx
,
TrackAtVertex<input_track_t>
& trk,
91
int
sign
);
92
}
// Namespace detail
93
94
}
// Namespace KalmanVertexUpdater
95
}
// Namespace Acts
96
97
#include "
KalmanVertexUpdater.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
KalmanVertexUpdater.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration