EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmVertex Class Reference

#include <EicRoot/blob/master/cbmdata/global/CbmVertex.h>

+ Inheritance diagram for CbmVertex:
+ Collaboration diagram for CbmVertex:

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]
 

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 24 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 24 of file CbmVertex.h

Constructor & Destructor Documentation

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

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 48 of file CbmVertex.cxx.

View newest version in sPHENIX GitHub at line 48 of file CbmVertex.cxx

References fCovMatrix.

CbmVertex::~CbmVertex ( )
virtual

Destructor

Definition at line 80 of file CbmVertex.cxx.

View newest version in sPHENIX GitHub at line 80 of file CbmVertex.cxx

Member Function Documentation

CbmVertex::ClassDef ( CbmVertex  ,
 
)
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().

+ Here is the caller graph for this function:

Double_t CbmVertex::GetChi2 ( ) const
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().

+ Here is the call graph for this function:

Int_t CbmVertex::GetNDF ( ) const
inline

Definition at line 66 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 66 of file CbmVertex.h

References fNDF.

Int_t CbmVertex::GetNTracks ( ) const
inline

Definition at line 67 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 67 of file CbmVertex.h

References fNTracks.

Double_t CbmVertex::GetX ( ) const
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.

Double_t CbmVertex::GetY ( ) const
inline

Definition at line 63 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 63 of file CbmVertex.h

References fY.

Double_t CbmVertex::GetZ ( ) const
inline

Definition at line 64 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 64 of file CbmVertex.h

References fZ.

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

Definition at line 68 of file CbmVertex.h.

View newest version in sPHENIX GitHub at line 68 of file CbmVertex.h

References fX, fY, and fZ.

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

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

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

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 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.

Member Data Documentation

Double32_t CbmVertex::fChi2
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().

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 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().

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

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

Double32_t CbmVertex::fX
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().

Double32_t CbmVertex::fY
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().

Double32_t CbmVertex::fZ
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().


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