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 
13 
14 #include <functional>
15 
16 namespace Acts {
17 
23 
24 template <typename input_track_t>
25 
26 struct TrackAtVertex {
28  TrackAtVertex() = delete;
29 
35  TrackAtVertex(double chi2perTrack, const BoundTrackParameters& paramsAtVertex,
36  const input_track_t* originalTrack)
37  : fittedParams(paramsAtVertex),
38  originalParams(originalTrack),
39  chi2Track(chi2perTrack),
40  ndf(0.),
42  trackWeight(1.) {}
43 
49  TrackAtVertex(const BoundTrackParameters& paramsAtVertex,
50  const input_track_t* originalTrack)
51  : fittedParams(paramsAtVertex),
52  originalParams(originalTrack),
53  chi2Track(0.),
54  ndf(0.),
56  trackWeight(1.) {}
57 
60 
62  const input_track_t* originalParams;
63 
65  double chi2Track = 0;
66 
71  double ndf = 0;
72 
75  double vertexCompatibility = 0;
76 
78  double trackWeight = 0;
79 
82 };
83 
84 } // namespace Acts