BmnRoot
Loading...
Searching...
No Matches
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 ()
 
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
 
std::vector< Int_t > GetTrackInds ()
 
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat)
 
void SetVertexXYZ (Double_t x, Double_t y, Double_t z)
 
void Reset ()
 
Double32_t(& GetCovMatrix ())[6]
 
void CopyFrom (CbmVertex *hdr)
 
 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
 
std::vector< Int_t > GetTrackInds ()
 
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat)
 
void SetVertexXYZ (Double_t x, Double_t y, Double_t z)
 
void Reset ()
 
Double32_t(& GetCovMatrix ())[6]
 
void CopyFrom (CbmVertex *hdr)
 

Public Attributes

std::vector< Int_t > trkID
 

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

Constructor & Destructor Documentation

◆ CbmVertex() [1/6]

CbmVertex::CbmVertex ( )

Default constructor

Definition at line 15 of file CbmVertex.cxx.

References i.

◆ CbmVertex() [2/6]

CbmVertex::CbmVertex ( const char *  name,
const char *  title 
)

Constructor with name and title

Definition at line 32 of file CbmVertex.cxx.

References i.

◆ CbmVertex() [3/6]

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

References i.

◆ ~CbmVertex() [1/2]

CbmVertex::~CbmVertex ( )
virtual

Destructor

Definition at line 77 of file CbmVertex.cxx.

◆ CbmVertex() [4/6]

CbmVertex::CbmVertex ( )

Default constructor

◆ CbmVertex() [5/6]

CbmVertex::CbmVertex ( const char *  name,
const char *  title 
)

Constructor with name and title

◆ CbmVertex() [6/6]

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)

◆ ~CbmVertex() [2/2]

virtual CbmVertex::~CbmVertex ( )
virtual

Destructor

Member Function Documentation

◆ CopyFrom() [1/2]

void CbmVertex::CopyFrom ( CbmVertex hdr)

Definition at line 160 of file CbmVertex.cxx.

References SetVertex(), and v.

◆ CopyFrom() [2/2]

void CbmVertex::CopyFrom ( CbmVertex hdr)

◆ CovMatrix() [1/2]

◆ CovMatrix() [2/2]

void CbmVertex::CovMatrix ( TMatrixFSym &  covMat) const

◆ GetChi2() [1/2]

◆ GetChi2() [2/2]

Double_t CbmVertex::GetChi2 ( ) const
inline

Definition at line 61 of file CbmVertex.h.

◆ GetCovariance() [1/2]

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

◆ GetCovariance() [2/2]

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

◆ GetCovMatrix() [1/2]

Double32_t(& CbmVertex::GetCovMatrix ( ) )[6]
inline

Definition at line 98 of file CbmVertex.h.

◆ GetCovMatrix() [2/2]

Double32_t(& CbmVertex::GetCovMatrix ( ) )[6]
inline

Definition at line 98 of file CbmVertex.h.

◆ GetNDF() [1/2]

◆ GetNDF() [2/2]

Int_t CbmVertex::GetNDF ( ) const
inline

Definition at line 62 of file CbmVertex.h.

◆ GetNTracks() [1/2]

◆ GetNTracks() [2/2]

Int_t CbmVertex::GetNTracks ( ) const
inline

Definition at line 63 of file CbmVertex.h.

◆ GetTrackInds() [1/2]

std::vector< Int_t > CbmVertex::GetTrackInds ( )
inline

Definition at line 69 of file CbmVertex.h.

References trkID.

Referenced by BmnTrackConv::ProcessDST().

◆ GetTrackInds() [2/2]

std::vector< Int_t > CbmVertex::GetTrackInds ( )
inline

Definition at line 69 of file CbmVertex.h.

References trkID.

◆ GetX() [1/2]

◆ GetX() [2/2]

Double_t CbmVertex::GetX ( ) const
inline

Accessors

Definition at line 58 of file CbmVertex.h.

◆ GetY() [1/2]

◆ GetY() [2/2]

Double_t CbmVertex::GetY ( ) const
inline

Definition at line 59 of file CbmVertex.h.

◆ GetZ() [1/2]

◆ GetZ() [2/2]

Double_t CbmVertex::GetZ ( ) const
inline

Definition at line 60 of file CbmVertex.h.

◆ Position() [1/2]

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

Definition at line 64 of file CbmVertex.h.

◆ Position() [2/2]

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

Definition at line 64 of file CbmVertex.h.

◆ Print() [1/2]

void CbmVertex::Print ( )

Ouput to screen

Definition at line 82 of file CbmVertex.cxx.

Referenced by CbmFindPrimaryVertex::Exec().

◆ Print() [2/2]

void CbmVertex::Print ( )

Ouput to screen

◆ Reset() [1/2]

void CbmVertex::Reset ( )

Reset the member variables

Definition at line 151 of file CbmVertex.cxx.

References i.

Referenced by CbmFindPrimaryVertex::Exec(), and CbmFindPrimaryVertex::Finish().

◆ Reset() [2/2]

void CbmVertex::Reset ( )

Reset the member variables

◆ SetVertex() [1/2]

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

References i.

Referenced by BmnCombineVertexFinder::CombineVertex(), and CopyFrom().

◆ SetVertex() [2/2]

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)

◆ SetVertexXYZ() [1/2]

void CbmVertex::SetVertexXYZ ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 88 of file CbmVertex.h.

◆ SetVertexXYZ() [2/2]

void CbmVertex::SetVertexXYZ ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 88 of file CbmVertex.h.

Member Data Documentation

◆ trkID

std::vector< Int_t > CbmVertex::trkID

Definition at line 67 of file CbmVertex.h.

Referenced by BmnKFPrimaryVertexFinder::Exec(), and GetTrackInds().


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