EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/cbmdata/global/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 () |
void | Print () |
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 | SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat) |
void | Reset () |
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 24 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 24 of file CbmVertex.h
CbmVertex::CbmVertex | ( | ) |
Default constructor
Definition at line 14 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 14 of file CbmVertex.cxx
References fCovMatrix.
CbmVertex::CbmVertex | ( | const char * | name, |
const char * | title | ||
) |
Constructor with name and title
Definition at line 31 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 31 of file CbmVertex.cxx
References fCovMatrix.
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 48 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 48 of file CbmVertex.cxx
References fCovMatrix.
|
virtual |
Destructor
Definition at line 80 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 80 of file CbmVertex.cxx
|
private |
void CbmVertex::CovMatrix | ( | TMatrixFSym & | covMat | ) | const |
Definition at line 99 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 99 of file CbmVertex.cxx
References fCovMatrix.
Referenced by GetCovariance().
|
inline |
Definition at line 65 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 65 of file CbmVertex.h
References fChi2.
Double_t CbmVertex::GetCovariance | ( | Int_t | i, |
Int_t | j | ||
) | const |
Definition at line 114 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 114 of file CbmVertex.cxx
References CovMatrix().
|
inline |
Definition at line 66 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 66 of file CbmVertex.h
References fNDF.
|
inline |
Definition at line 67 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 67 of file CbmVertex.h
References fNTracks.
|
inline |
Accessors
Definition at line 62 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 62 of file CbmVertex.h
References fX.
|
inline |
Definition at line 63 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 63 of file CbmVertex.h
References fY.
|
inline |
Definition at line 64 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 64 of file CbmVertex.h
References fZ.
|
inline |
Definition at line 68 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 68 of file CbmVertex.h
void CbmVertex::Print | ( | ) |
Ouput to screen
Definition at line 86 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 86 of file CbmVertex.cxx
void CbmVertex::Reset | ( | ) |
Reset the member variables
Definition at line 145 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 145 of file CbmVertex.cxx
References fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, and fZ.
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 126 of file CbmVertex.cxx.
View newest version in sPHENIX GitHub at line 126 of file CbmVertex.cxx
References fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, x, y, and z.
|
private |
Chi2 of vertex fit
Definition at line 96 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 96 of file CbmVertex.h
Referenced by GetChi2(), Print(), Reset(), and SetVertex().
|
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 107 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 107 of file CbmVertex.h
Referenced by CbmVertex(), CovMatrix(), Reset(), and SetVertex().
|
private |
Number of degrees of freedom of vertex fit
Definition at line 99 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 99 of file CbmVertex.h
Referenced by GetNDF(), Print(), Reset(), and SetVertex().
|
private |
Number of tracks used for the vertex fit
Definition at line 102 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 102 of file CbmVertex.h
Referenced by GetNTracks(), Print(), Reset(), and SetVertex().
|
private |
Position coordinates [cm]
Definition at line 93 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 93 of file CbmVertex.h
Referenced by GetX(), Position(), Print(), Reset(), and SetVertex().
|
private |
Definition at line 93 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 93 of file CbmVertex.h
Referenced by GetY(), Position(), Print(), Reset(), and SetVertex().
|
private |
Definition at line 93 of file CbmVertex.h.
View newest version in sPHENIX GitHub at line 93 of file CbmVertex.h
Referenced by GetZ(), Position(), Print(), Reset(), and SetVertex().