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
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
Vector3
newVertexPos
= Vector3::Zero();
28
SquareMatrix3
newVertexCov
= SquareMatrix3::Zero();
29
SquareMatrix3
newVertexWeight
= SquareMatrix3::Zero();
30
SquareMatrix3
oldVertexWeight
= SquareMatrix3::Zero();
31
SquareMatrix3
momWeightInv
= SquareMatrix3::Zero();
32
};
33
42
template
<
typename
input_track_t>
43
void
updateVertexWithTrack
(
Vertex<input_track_t>
& vtx,
44
TrackAtVertex<input_track_t>
& trk);
45
53
template
<
typename
input_track_t>
54
void
updatePosition
(
const
Acts::Vertex<input_track_t>
& vtx,
55
const
Acts::LinearizedTrack
& linTrack,
double
trackWeight,
56
int
sign
,
MatrixCache
& matrixCache);
57
58
namespace
detail {
59
66
template
<
typename
input_track_t>
67
double
vertexPositionChi2
(
const
Vertex<input_track_t>
& oldVtx,
68
const
MatrixCache
& matrixCache);
69
77
template
<
typename
input_track_t>
78
double
trackParametersChi2
(
const
LinearizedTrack
& linTrack,
79
const
MatrixCache
& matrixCache);
80
87
template
<
typename
input_track_t>
88
void
update
(
Vertex<input_track_t>
& vtx,
TrackAtVertex<input_track_t>
& trk,
89
int
sign
);
90
}
// Namespace detail
91
92
}
// Namespace KalmanVertexUpdater
93
}
// Namespace Acts
94
95
#include "
KalmanVertexUpdater.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
KalmanVertexUpdater.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:35
using
1.8.2 with
sPHENIX GitHub integration