|
CbmRoot
|
Estimates a common vertex from multiple straight GlobalTracks. More...
#include <CbmDcaVertexFinder.h>
Classes | |
| struct | PCA |
| struct | Qa |
Public Member Functions | |
| CbmDcaVertexFinder () | |
| CbmDcaVertexFinder (double max_dca) | |
| Constructor setting maximum DCA for track pair. | |
| CbmDcaVertexFinder (const std::vector< CbmGlobalTrack * > tracks) | |
| Constructor using input set of track. | |
| CbmDcaVertexFinder (const std::vector< CbmGlobalTrack * > tracks, const double max_dca) | |
| Constructor using input set of track, and maximum DCA for track pair. | |
| void | SetTracks (const std::vector< CbmGlobalTrack * > tracks) |
| Set input track. | |
| ~CbmDcaVertexFinder ()=default | |
| std::optional< CbmDcaVertexFinder::PCA > | FindPca (CbmGlobalTrack *trk_i, CbmGlobalTrack *trk_j) |
| Calculate the Point of Closest Approach of two straight tracks if tracks are parallel it return a nullopt. | |
| std::optional< CbmVertex > | FindVertex () |
| Run algorithm to find vertex. | |
| void | EnableQa (Qa qa) |
Private Attributes | |
| const double | fMaxDca |
| std::vector< CbmGlobalTrack * > | fInputTracks |
| double | fNbPairs |
| std::optional< Qa > | fQA |
| TMatrixFSym | fCovMatrix |
Estimates a common vertex from multiple straight GlobalTracks.
The algorithm consist in averaging the PCA of all valid pair of tracks. A valid pair is defined but a cut in the maximum value for DCA
Definition at line 22 of file CbmDcaVertexFinder.h.
| CbmDcaVertexFinder::CbmDcaVertexFinder | ( | ) |
Definition at line 12 of file CbmDcaVertexFinder.cxx.
References fCovMatrix, fInputTracks, fMaxDca, fNbPairs, and fQA.
| CbmDcaVertexFinder::CbmDcaVertexFinder | ( | double | max_dca | ) |
Constructor setting maximum DCA for track pair.
Definition at line 22 of file CbmDcaVertexFinder.cxx.
References fCovMatrix, fInputTracks, fMaxDca, fNbPairs, and fQA.
| CbmDcaVertexFinder::CbmDcaVertexFinder | ( | const std::vector< CbmGlobalTrack * > | tracks | ) |
Constructor using input set of track.
Default constructor.
| tracks |
Definition at line 35 of file CbmDcaVertexFinder.cxx.
References fCovMatrix, fInputTracks, fMaxDca, fNbPairs, fQA, and tracks.
| CbmDcaVertexFinder::CbmDcaVertexFinder | ( | const std::vector< CbmGlobalTrack * > | tracks, |
| const double | max_dca ) |
Constructor using input set of track, and maximum DCA for track pair.
Default constructor.
| tracks |
Definition at line 48 of file CbmDcaVertexFinder.cxx.
References fCovMatrix, fInputTracks, fMaxDca, fNbPairs, fQA, and tracks.
|
default |
|
inline |
Definition at line 64 of file CbmDcaVertexFinder.h.
References fQA.
| std::optional< CbmDcaVertexFinder::PCA > CbmDcaVertexFinder::FindPca | ( | CbmGlobalTrack * | trk_i, |
| CbmGlobalTrack * | trk_j ) |
Calculate the Point of Closest Approach of two straight tracks if tracks are parallel it return a nullopt.
| trk_i,trk_j | pointer to CbmGlobal tracks |
Definition at line 97 of file CbmDcaVertexFinder.cxx.
References CbmGlobalTrack::GetParamFirst().
Referenced by FindVertex().
| std::optional< CbmVertex > CbmDcaVertexFinder::FindVertex | ( | ) |
Run algorithm to find vertex.
find vertex using input tracks
Definition at line 66 of file CbmDcaVertexFinder.cxx.
References fCovMatrix, FindPca(), fInputTracks, fMaxDca, fNbPairs, and fQA.
| void CbmDcaVertexFinder::SetTracks | ( | const std::vector< CbmGlobalTrack * > | tracks | ) |
Set input track.
Definition at line 58 of file CbmDcaVertexFinder.cxx.
References fInputTracks, and tracks.
|
private |
Definition at line 72 of file CbmDcaVertexFinder.h.
Referenced by CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), and FindVertex().
|
private |
Definition at line 68 of file CbmDcaVertexFinder.h.
Referenced by CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), FindVertex(), and SetTracks().
|
private |
Definition at line 67 of file CbmDcaVertexFinder.h.
Referenced by CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), and FindVertex().
|
private |
Definition at line 69 of file CbmDcaVertexFinder.h.
Referenced by CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), and FindVertex().
|
private |
Definition at line 70 of file CbmDcaVertexFinder.h.
Referenced by CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), CbmDcaVertexFinder(), EnableQa(), and FindVertex().