ECCE @ EIC 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  Vector3D newVertexPos = Vector3D::Zero();
32 };
33 
42 template <typename input_track_t>
45 
55 template <typename input_track_t>
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>
91  int sign);
92 } // Namespace detail
93 
94 } // Namespace KalmanVertexUpdater
95 } // Namespace Acts
96 
97 #include "KalmanVertexUpdater.ipp"