Analysis Software
Documentation for sPHENIX simulation software
 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 
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>
45 
53 template <typename input_track_t>
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>
89  int sign);
90 } // Namespace detail
91 
92 } // Namespace KalmanVertexUpdater
93 } // Namespace Acts
94 
95 #include "KalmanVertexUpdater.ipp"