CbmRoot
|
#include <CbmVertex.h>
Public Member Functions | |
CbmVertex () | |
CbmVertex (const char *name, const char *title) | |
CbmVertex (const char *name, const char *title, Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat) | |
virtual | ~CbmVertex () |
virtual void | Print (Option_t *opt="") const |
Double_t | GetX () const |
Double_t | GetY () const |
Double_t | GetZ () const |
Double_t | GetChi2 () const |
Int_t | GetNDF () const |
Int_t | GetNTracks () const |
void | Position (TVector3 &pos) const |
void | CovMatrix (TMatrixFSym &covMat) const |
Double_t | GetCovariance (Int_t i, Int_t j) const |
void | Reset () |
void | SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat) |
virtual std::string | ToString () const |
Private Member Functions | |
ClassDef (CbmVertex, 1) | |
Private Attributes | |
Double32_t | fX |
Double32_t | fY |
Double32_t | fZ |
Double32_t | fChi2 |
Int_t | fNDF |
Int_t | fNTracks |
Double32_t | fCovMatrix [6] |
Data class for a vertex in CBM. Data level: RECO
Definition at line 26 of file CbmVertex.h.
CbmVertex::CbmVertex | ( | ) |
CbmVertex::CbmVertex | ( | const char * | name, |
const char * | title | ||
) |
Constructor with name and title
Definition at line 36 of file CbmVertex.cxx.
References fCovMatrix, and i.
CbmVertex::CbmVertex | ( | const char * | name, |
const char * | title, | ||
Double_t | x, | ||
Double_t | y, | ||
Double_t | z, | ||
Double_t | chi2, | ||
Int_t | ndf, | ||
Int_t | nTracks, | ||
const TMatrixFSym & | covMat | ||
) |
Constructor with all member variables
name | Name of object |
title | Title of object |
x | x coordinate [cm] |
y | y coordinate [cm] |
z | z coordinate [cm] |
chi2 | chi square of vertex fit |
ndf | Number of degrees of freedom of vertex fit |
nTracks | Number of tracks used for vertex fit |
covMat | Covariance Matrix (symmetric, 3x3) |
Definition at line 52 of file CbmVertex.cxx.
References fCovMatrix, and i.
|
virtual |
Destructor
Definition at line 86 of file CbmVertex.cxx.
|
private |
void CbmVertex::CovMatrix | ( | TMatrixFSym & | covMat | ) | const |
Definition at line 104 of file CbmVertex.cxx.
References fCovMatrix, and i.
Referenced by CbmStsKFTrackFitter::GetChiToVertex(), and GetCovariance().
|
inline |
Definition at line 71 of file CbmVertex.h.
References fChi2.
Referenced by compareEventDataMembers(), compareVertexDataMembers(), CbmRecEventHeaderConverter::Exec(), CbmStsFitPerformanceTask::Exec(), PairAnalysisVarManager::FillVarVertex(), CbmStsFitPerformanceTask::FillVertexHisto(), and DataTreeCbmInterface::ReadEvent().
Double_t CbmVertex::GetCovariance | ( | Int_t | i, |
Int_t | j | ||
) | const |
Definition at line 118 of file CbmVertex.cxx.
References CovMatrix(), and i.
Referenced by compareEventDataMembers(), compareVertexDataMembers(), CbmStsFitPerformanceTask::Exec(), and CbmStsFitPerformanceTask::FillVertexHisto().
|
inline |
Definition at line 72 of file CbmVertex.h.
References fNDF.
Referenced by compareEventDataMembers(), compareVertexDataMembers(), CbmRecEventHeaderConverter::Exec(), CbmStsFitPerformanceTask::Exec(), PairAnalysisVarManager::FillVarVertex(), CbmStsFitPerformanceTask::FillVertexHisto(), and DataTreeCbmInterface::ReadEvent().
|
inline |
Definition at line 73 of file CbmVertex.h.
References fNTracks.
Referenced by compareEventDataMembers(), compareVertexDataMembers(), CbmFindPrimaryVertex::Exec(), PairAnalysisVarManager::FillVarVertex(), and CbmStsFitPerformanceTask::FillVertexHisto().
|
inline |
Accessors
Definition at line 68 of file CbmVertex.h.
References fX.
Referenced by CbmLitFindGlobalTracks::CalculateLength(), compareEventDataMembers(), compareVertexDataMembers(), CbmRecEventHeaderConverter::Exec(), CbmKFParticleFinder::Exec(), CbmStsFitPerformanceTask::Exec(), PairAnalysisVarManager::FillVarVertex(), CbmStsFitPerformanceTask::FillVertexHisto(), CbmStsKFTrackFitter::GetChiToVertex(), PairAnalysisPair::GetDCA(), CbmLitConverter::GetStsTrackTimes(), NicaCbmGlobalEventInterface::GetVertex(), DataTreeCbmInterface::ReadEvent(), DataTreeCbmInterface::ReadTracks(), and CbmStsTracksConverter::ReadVertexTracks().
|
inline |
Definition at line 69 of file CbmVertex.h.
References fY.
Referenced by CbmLitFindGlobalTracks::CalculateLength(), compareEventDataMembers(), compareVertexDataMembers(), CbmRecEventHeaderConverter::Exec(), CbmKFParticleFinder::Exec(), CbmStsFitPerformanceTask::Exec(), PairAnalysisVarManager::FillVarVertex(), CbmStsFitPerformanceTask::FillVertexHisto(), CbmStsKFTrackFitter::GetChiToVertex(), PairAnalysisPair::GetDCA(), CbmLitConverter::GetStsTrackTimes(), NicaCbmGlobalEventInterface::GetVertex(), DataTreeCbmInterface::ReadEvent(), DataTreeCbmInterface::ReadTracks(), and CbmStsTracksConverter::ReadVertexTracks().
|
inline |
Definition at line 70 of file CbmVertex.h.
References fZ.
Referenced by LxFinderTriplet::CalcInvMass(), LxFinder::CalcInvMass(), CbmGlobalTrackingTask::CalcStsTrackLength(), CbmLitFindGlobalTracks::CalculateLength(), compareEventDataMembers(), compareVertexDataMembers(), CbmGlobalTrackFitterKF::DoFit(), CbmRecEventHeaderConverter::Exec(), LxFinderTriplet::Exec(), CbmAnaDimuonAnalysis::Exec(), CbmKFParticleFinder::Exec(), CbmStsFitPerformanceTask::Exec(), LxFinder::Exec(), CbmHadronAnalysis::ExecEvent(), PairAnalysisVarManager::FillVarVertex(), CbmStsFitPerformanceTask::FillVertexHisto(), CbmStsKFTrackFitter::GetChiToVertex(), PairAnalysisPair::GetDCA(), CbmLitConverter::GetStsTrackTimes(), NicaCbmGlobalEventInterface::GetVertex(), DataTreeCbmInterface::ReadEvent(), DataTreeCbmInterface::ReadTracks(), and CbmStsTracksConverter::ReadVertexTracks().
|
inline |
Definition at line 74 of file CbmVertex.h.
References fX, fY, fZ, and pos.
Referenced by CbmL1CATrdTrackFinderSA::CreateTracks(), and PairAnalysisPair::GetCosPointingAngle().
|
virtual |
void CbmVertex::Reset | ( | ) |
Reset the member variables
Definition at line 159 of file CbmVertex.cxx.
References fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, and i.
Referenced by CbmFindPrimaryVertex::Exec(), PairAnalysisVarManager::FillVarMCHeader(), CbmFindPrimaryVertex::Finish(), and PairAnalysisVarManager::SetEvent().
void CbmVertex::SetVertex | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z, | ||
Double_t | chi2, | ||
Int_t | ndf, | ||
Int_t | nTracks, | ||
const TMatrixFSym & | covMat | ||
) |
Set the member variables
x | x coordinate [cm] |
y | y coordinate [cm] |
z | z coordinate [cm] |
chi2 | chi square of vertex fit |
ndf | Number of degrees of freedom of vertex fit |
nTracks | Number of tracks used for vertex fit |
covMat | Covariance Matrix (symmetric, 3x3) |
Definition at line 129 of file CbmVertex.cxx.
References fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, i, x, and y.
Referenced by CbmKresFunctions::ChiToVertex(), PairAnalysisVarManager::FillVarMCHeader(), CbmPVFinderIdeal::FindPrimaryVertex(), CbmKresFunctions::FitToVertex(), CbmKresFunctions::FitToVertexAndGetChi(), CbmEvent::SetVertex(), and TEST().
|
virtual |
String output
Definition at line 169 of file CbmVertex.cxx.
References fChi2, fNDF, fNTracks, fX, fY, and fZ.
Referenced by CbmFindPrimaryVertex::Exec(), and CbmFindPrimaryVertexEvents::Exec().
|
private |
Chi2 of vertex fit
Definition at line 110 of file CbmVertex.h.
Referenced by GetChi2(), Print(), Reset(), SetVertex(), and ToString().
|
private |
Covariance matrix for x, y, and z stored in an array. The sequence is a[0,0], a[0,1], a[0,2], a[1,1], a[1,2], a[2,2]
Definition at line 121 of file CbmVertex.h.
Referenced by CbmVertex(), CovMatrix(), Reset(), and SetVertex().
|
private |
Number of degrees of freedom of vertex fit
Definition at line 113 of file CbmVertex.h.
Referenced by GetNDF(), Print(), Reset(), SetVertex(), and ToString().
|
private |
Number of tracks used for the vertex fit
Definition at line 116 of file CbmVertex.h.
Referenced by GetNTracks(), Print(), Reset(), SetVertex(), and ToString().
|
private |
Position coordinates [cm]
Definition at line 107 of file CbmVertex.h.
Referenced by GetX(), Position(), Print(), Reset(), SetVertex(), and ToString().
|
private |
Definition at line 107 of file CbmVertex.h.
Referenced by GetY(), Position(), Print(), Reset(), SetVertex(), and ToString().
|
private |
Definition at line 107 of file CbmVertex.h.
Referenced by GetZ(), Position(), Print(), Reset(), SetVertex(), and ToString().