CbmRoot
CbmVertex Class Reference

#include <CbmVertex.h>

Inheritance diagram for CbmVertex:
[legend]
Collaboration diagram for CbmVertex:
[legend]

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]
 

Detailed Description

CbmVertex.h

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e

Data class for a vertex in CBM. Data level: RECO

Definition at line 26 of file CbmVertex.h.

Constructor & Destructor Documentation

◆ CbmVertex() [1/3]

CbmVertex::CbmVertex ( )

Default constructor

Definition at line 21 of file CbmVertex.cxx.

References fCovMatrix, and i.

◆ CbmVertex() [2/3]

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() [3/3]

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

Parameters
nameName of object
titleTitle of object
xx coordinate [cm]
yy coordinate [cm]
zz coordinate [cm]
chi2chi square of vertex fit
ndfNumber of degrees of freedom of vertex fit
nTracksNumber of tracks used for vertex fit
covMatCovariance Matrix (symmetric, 3x3)

Definition at line 52 of file CbmVertex.cxx.

References fCovMatrix, and i.

◆ ~CbmVertex()

CbmVertex::~CbmVertex ( )
virtual

Destructor

Definition at line 86 of file CbmVertex.cxx.

Member Function Documentation

◆ ClassDef()

CbmVertex::ClassDef ( CbmVertex  ,
 
)
private

◆ CovMatrix()

void CbmVertex::CovMatrix ( TMatrixFSym &  covMat) const

Definition at line 104 of file CbmVertex.cxx.

References fCovMatrix, and i.

Referenced by CbmStsKFTrackFitter::GetChiToVertex(), and GetCovariance().

◆ GetChi2()

◆ GetCovariance()

Double_t CbmVertex::GetCovariance ( Int_t  i,
Int_t  j 
) const

◆ GetNDF()

◆ GetNTracks()

◆ GetX()

◆ GetY()

◆ GetZ()

◆ Position()

void CbmVertex::Position ( TVector3 &  pos) const
inline

Definition at line 74 of file CbmVertex.h.

References fX, fY, fZ, and pos.

Referenced by CbmL1CATrdTrackFinderSA::CreateTracks(), and PairAnalysisPair::GetCosPointingAngle().

◆ Print()

void CbmVertex::Print ( Option_t *  opt = "") const
virtual

Ouput to screen

Definition at line 91 of file CbmVertex.cxx.

References fChi2, fNDF, fNTracks, fX, fY, and fZ.

◆ Reset()

void CbmVertex::Reset ( )

◆ SetVertex()

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

Parameters
xx coordinate [cm]
yy coordinate [cm]
zz coordinate [cm]
chi2chi square of vertex fit
ndfNumber of degrees of freedom of vertex fit
nTracksNumber of tracks used for vertex fit
covMatCovariance 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().

◆ ToString()

string CbmVertex::ToString ( ) const
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().

Member Data Documentation

◆ fChi2

Double32_t CbmVertex::fChi2
private

Chi2 of vertex fit

Definition at line 110 of file CbmVertex.h.

Referenced by GetChi2(), Print(), Reset(), SetVertex(), and ToString().

◆ fCovMatrix

Double32_t CbmVertex::fCovMatrix[6]
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().

◆ fNDF

Int_t CbmVertex::fNDF
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().

◆ fNTracks

Int_t CbmVertex::fNTracks
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().

◆ fX

Double32_t CbmVertex::fX
private

Position coordinates [cm]

Definition at line 107 of file CbmVertex.h.

Referenced by GetX(), Position(), Print(), Reset(), SetVertex(), and ToString().

◆ fY

Double32_t CbmVertex::fY
private

Definition at line 107 of file CbmVertex.h.

Referenced by GetY(), Position(), Print(), Reset(), SetVertex(), and ToString().

◆ fZ

Double32_t CbmVertex::fZ
private

Definition at line 107 of file CbmVertex.h.

Referenced by GetZ(), Position(), Print(), Reset(), SetVertex(), and ToString().


The documentation for this class was generated from the following files: