![]() |
FairShip
|
#include <RecoVertex.h>
Public Member Functions | |
| RecoVertex ()=default | |
| RecoVertex (const TVector3 &position, const std::array< Double_t, 6 > &covariance, Double_t chi2, Double_t nDoF) | |
| ~RecoVertex () override=default | |
| void | AddTrack (Int_t trackId, const TVector3 &momentum, const std::array< Double_t, 6 > &momentumCovariance) |
| void | SetDoca (Double_t doca) |
| Distance of closest approach of the two tracks, before the vertex fit. | |
| Double_t | x () const |
| Double_t | y () const |
| Double_t | z () const |
| Double_t | err_x () const |
| Double_t | err_y () const |
| Double_t | err_z () const |
| Double_t | chi2 () const |
| Double_t | nDoF () const |
| Double_t | doca () const |
| Distance of closest approach in cm for two-track vertices, else -1. | |
| const std::vector< Double_t > & | GetCovarianceElements () const |
| const std::vector< Int_t > & | trackIds () const |
| const std::vector< Double_t > & | trackPx () const |
| const std::vector< Double_t > & | trackPy () const |
| const std::vector< Double_t > & | trackPz () const |
| std::array< Double_t, 6 > | GetTrackMomentumCovariance (size_t i) const |
| Momentum covariance of track i, as 6 upper-triangle elements. | |
Private Member Functions | |
| ClassDefOverride (RecoVertex, 1) | |
Private Attributes | |
| Double_t | m_x {0.} |
| Double_t | m_y {0.} |
| Double_t | m_z {0.} |
| Double_t | m_err_x {0.} |
| Double_t | m_err_y {0.} |
| Double_t | m_err_z {0.} |
| Double_t | m_chi2 {0.} |
| Double_t | m_nDoF {0.} |
| Double_t | m_doca {-1.} |
| std::vector< Double_t > | m_cov_elements |
| std::vector< Int_t > | m_trackIds |
| std::vector< Double_t > | m_trackPx |
| std::vector< Double_t > | m_trackPy |
| std::vector< Double_t > | m_trackPz |
| std::vector< Double_t > | m_trackCovP |
| Momentum covariances of all tracks, 6 elements per track. | |
Fitted vertex from the ACTS straw tracker vertex fit, in the SHiP frame.
Positions are in cm, momenta in GeV. Covariances are stored as the upper triangle of the 3x3 matrix in row-major order: (0,0), (0,1), (0,2), (1,1), (1,2), (2,2).
The class does not depend on ACTS, so reco files can be read without it.
Definition at line 24 of file RecoVertex.h.
|
default |
| SHiP::RecoVertex::RecoVertex | ( | const TVector3 & | position, |
| const std::array< Double_t, 6 > & | covariance, | ||
| Double_t | chi2, | ||
| Double_t | nDoF ) |
Definition at line 13 of file RecoVertex.cxx.
|
overridedefault |
| void SHiP::RecoVertex::AddTrack | ( | Int_t | trackId, |
| const TVector3 & | momentum, | ||
| const std::array< Double_t, 6 > & | momentumCovariance ) |
Add a track fitted to this vertex.
trackId is the index of the track in the RecoTracks branch, momentum its momentum at the vertex and momentumCovariance the covariance of that momentum.
Definition at line 27 of file RecoVertex.cxx.
|
inline |
Definition at line 48 of file RecoVertex.h.
|
private |
|
inline |
Distance of closest approach in cm for two-track vertices, else -1.
Definition at line 51 of file RecoVertex.h.
|
inline |
Definition at line 45 of file RecoVertex.h.
|
inline |
Definition at line 46 of file RecoVertex.h.
|
inline |
Definition at line 47 of file RecoVertex.h.
|
inline |
Definition at line 52 of file RecoVertex.h.
| std::array< Double_t, 6 > SHiP::RecoVertex::GetTrackMomentumCovariance | ( | size_t | i | ) | const |
Momentum covariance of track i, as 6 upper-triangle elements.
Definition at line 37 of file RecoVertex.cxx.
|
inline |
Definition at line 49 of file RecoVertex.h.
|
inline |
Distance of closest approach of the two tracks, before the vertex fit.
Definition at line 40 of file RecoVertex.h.
|
inline |
Definition at line 56 of file RecoVertex.h.
|
inline |
Definition at line 57 of file RecoVertex.h.
|
inline |
Definition at line 58 of file RecoVertex.h.
|
inline |
Definition at line 59 of file RecoVertex.h.
|
inline |
Definition at line 42 of file RecoVertex.h.
|
inline |
Definition at line 43 of file RecoVertex.h.
|
inline |
Definition at line 44 of file RecoVertex.h.
|
private |
Definition at line 70 of file RecoVertex.h.
|
private |
Definition at line 73 of file RecoVertex.h.
|
private |
Definition at line 72 of file RecoVertex.h.
|
private |
Definition at line 67 of file RecoVertex.h.
|
private |
Definition at line 68 of file RecoVertex.h.
|
private |
Definition at line 69 of file RecoVertex.h.
|
private |
Definition at line 71 of file RecoVertex.h.
|
private |
Momentum covariances of all tracks, 6 elements per track.
Definition at line 79 of file RecoVertex.h.
|
private |
Definition at line 74 of file RecoVertex.h.
|
private |
Definition at line 75 of file RecoVertex.h.
|
private |
Definition at line 76 of file RecoVertex.h.
|
private |
Definition at line 77 of file RecoVertex.h.
|
private |
Definition at line 64 of file RecoVertex.h.
|
private |
Definition at line 65 of file RecoVertex.h.
|
private |
Definition at line 66 of file RecoVertex.h.