ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackAtVertex.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackAtVertex.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 <functional>
14 
15 namespace Acts {
16 
22 
23 template <typename input_track_t>
24 
25 struct TrackAtVertex {
27  TrackAtVertex() = delete;
28 
34  TrackAtVertex(double chi2perTrack, const BoundParameters& paramsAtVertex,
35  const input_track_t* originalTrack)
36  : fittedParams(paramsAtVertex),
37  originalParams(originalTrack),
38  chi2Track(chi2perTrack),
39  ndf(0.),
41  trackWeight(1.) {}
42 
48  TrackAtVertex(const BoundParameters& paramsAtVertex,
49  const input_track_t* originalTrack)
50  : fittedParams(paramsAtVertex),
51  originalParams(originalTrack),
52  chi2Track(0.),
53  ndf(0.),
55  trackWeight(1.) {}
56 
59 
61  const input_track_t* originalParams;
62 
64  double chi2Track = 0;
65 
70  double ndf = 0;
71 
74  double vertexCompatibility = 0;
75 
77  double trackWeight = 0;
78 
81 };
82 
83 } // namespace Acts