BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmVertex Class Reference

CbmVertex.h. More...

#include <CbmVertex.h>

Inheritance diagram for CbmVertex:
Collaboration diagram for CbmVertex:

Public Member Functions

 CbmVertex ()
 Default constructor.
 CbmVertex (const char *name, const char *title)
 Constructor with name and 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)
 Constructor with all member variables.
virtual ~CbmVertex ()
 Destructor.
void Print ()
 Ouput to screen.
Double_t GetX () const
 Accessors.
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)
 Set the member variables.
void SetVertexXYZ (Double_t x, Double_t y, Double_t z)
void Reset ()
 Reset the member variables.
Double32_t(& GetCovMatrix ())[6]
void CopyFrom (CbmVertex *hdr)
 CbmVertex ()
 Default constructor.
 CbmVertex (const char *name, const char *title)
 Constructor with name and 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)
 Constructor with all member variables.
virtual ~CbmVertex ()
 Destructor.
void Print ()
 Ouput to screen.
Double_t GetX () const
 Accessors.
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)
 Set the member variables.
void SetVertexXYZ (Double_t x, Double_t y, Double_t z)
void Reset ()
 Reset the member variables.
Double32_t(& GetCovMatrix ())[6]
void CopyFrom (CbmVertex *hdr)
Public Member Functions inherited from TNamed
 TNamed ()
 TNamed (const char *name, const char *title)
 TNamed (const TNamed &named)
 TNamed (const TString &name, const TString &title)
virtual ~TNamed ()
void Clear (Option_t *option="") override
TObject * Clone (const char *newname="") const override
Int_t Compare (const TObject *obj) const override
void Copy (TObject &named) const override
virtual void FillBuffer (char *&buffer)
const char * GetName () const override
const char * GetTitle () const override
ULong_t Hash () const override
TClass * IsA () const override
Bool_t IsSortable () const override
void ls (Option_t *option="") const override
TNamed & operator= (const TNamed &rhs)
void Print (Option_t *option="") const override
virtual void SetName (const char *name)
virtual void SetNameTitle (const char *name, const char *title)
virtual void SetTitle (const char *title="")
virtual Int_t Sizeof () const
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
R__ALWAYS_INLINE Bool_t IsZombie () const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Public Attributes

std::vector< Int_t > trkID
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject

Private Attributes

Double32_t fX
 Position coordinates [cm].
Double32_t fY
Double32_t fZ
Double32_t fChi2
 Chi2 of vertex fit.
Int_t fNDF
 Number of degrees of freedom of vertex fit.
Int_t fNTracks
 Number of tracks used for the vertex fit.
Double32_t fCovMatrix [6]
 Covariance matrix for x, y, and z stored in an array.

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TNamed
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Protected Member Functions inherited from TNamed
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TNamed
TString fName
TString fTitle
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

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

Definition at line 15 of file CbmVertex.cxx.

References TNamed::TNamed(), fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, and i.

Referenced by CopyFrom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CbmVertex() [2/6]

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

Definition at line 32 of file CbmVertex.cxx.

References TNamed::TNamed(), fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, and i.

Here is the call graph for this function:

◆ 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 )
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 TNamed::TNamed(), fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, i, x, y, and z.

Here is the call graph for this function:

◆ ~CbmVertex() [1/2]

CbmVertex::~CbmVertex ( )
virtual

Definition at line 77 of file CbmVertex.cxx.

◆ CbmVertex() [4/6]

CbmVertex::CbmVertex ( )

◆ CbmVertex() [5/6]

CbmVertex::CbmVertex ( const char * name,
const char * 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 )
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)

References x, y, and z.

◆ ~CbmVertex() [2/2]

virtual CbmVertex::~CbmVertex ( )
virtual

Member Function Documentation

◆ CopyFrom() [1/2]

void CbmVertex::CopyFrom ( CbmVertex * hdr)

Definition at line 160 of file CbmVertex.cxx.

References CbmVertex(), TNamed::SetTitle(), SetVertex(), and v.

Here is the call graph for this function:

◆ CopyFrom() [2/2]

void CbmVertex::CopyFrom ( CbmVertex * hdr)

References CbmVertex(), fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, and fZ.

Here is the call graph for this function:

◆ CovMatrix() [1/2]

void CbmVertex::CovMatrix ( TMatrixFSym & covMat) const

Definition at line 100 of file CbmVertex.cxx.

References fCovMatrix, and i.

Referenced by BmnMotherFitterPart::Chi2Vertex(), BmnCombineVertexFinder::CombineVertex(), BmnStsKFTrackFitter::GetChiToVertex(), CbmStsKFTrackFitter::GetChiToVertex(), GetCovariance(), and BmnTrackConv::ProcessDST().

Here is the caller graph for this function:

◆ CovMatrix() [2/2]

void CbmVertex::CovMatrix ( TMatrixFSym & covMat) const

◆ GetChi2() [1/2]

Double_t CbmVertex::GetChi2 ( ) const
inline

Definition at line 61 of file CbmVertex.h.

References fChi2.

Referenced by BmnCombineVertexFinder::CombineVertex(), CbmStsFitPerformanceTask::Exec(), and BmnTrackConv::ProcessDST().

Here is the caller graph for this function:

◆ GetChi2() [2/2]

Double_t CbmVertex::GetChi2 ( ) const
inline

Definition at line 61 of file CbmVertex.h.

References fChi2.

◆ GetCovariance() [1/2]

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

Definition at line 115 of file CbmVertex.cxx.

References CovMatrix(), and i.

Referenced by BmnCombineVertexFinder::CombineVertex(), and CbmStsFitPerformanceTask::Exec().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCovariance() [2/2]

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

References i, and trkID.

◆ GetCovMatrix() [1/2]

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

Definition at line 98 of file CbmVertex.h.

References fCovMatrix.

◆ GetCovMatrix() [2/2]

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

Definition at line 98 of file CbmVertex.h.

References fCovMatrix.

◆ GetNDF() [1/2]

Int_t CbmVertex::GetNDF ( ) const
inline

Definition at line 62 of file CbmVertex.h.

References fNDF.

Referenced by CbmStsFitPerformanceTask::Exec(), and BmnTrackConv::ProcessDST().

Here is the caller graph for this function:

◆ GetNDF() [2/2]

Int_t CbmVertex::GetNDF ( ) const
inline

Definition at line 62 of file CbmVertex.h.

References fNDF.

◆ GetNTracks() [1/2]

Int_t CbmVertex::GetNTracks ( ) const
inline

Definition at line 63 of file CbmVertex.h.

References fNTracks.

Referenced by BmnEfficiencyTOF700(), BmnCombineVertexFinder::CombineVertex(), compareA(), BmnTrackConv::ProcessDST(), and read_dst_example().

Here is the caller graph for this function:

◆ GetNTracks() [2/2]

Int_t CbmVertex::GetNTracks ( ) const
inline

Definition at line 63 of file CbmVertex.h.

References fNTracks.

◆ GetTrackInds() [1/2]

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

Definition at line 69 of file CbmVertex.h.

References trkID.

Referenced by BmnTrackConv::ProcessDST().

Here is the caller graph for this function:

◆ 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

Definition at line 58 of file CbmVertex.h.

References fX.

◆ GetY() [1/2]

◆ GetY() [2/2]

Double_t CbmVertex::GetY ( ) const
inline

Definition at line 59 of file CbmVertex.h.

References fY.

◆ GetZ() [1/2]

◆ GetZ() [2/2]

Double_t CbmVertex::GetZ ( ) const
inline

Definition at line 60 of file CbmVertex.h.

References fZ.

◆ Position() [1/2]

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

Definition at line 64 of file CbmVertex.h.

References fX, fY, fZ, and TVector3::SetXYZ().

Here is the call graph for this function:

◆ Position() [2/2]

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

Definition at line 64 of file CbmVertex.h.

References fX, fY, fZ, and TVector3::SetXYZ().

Here is the call graph for this function:

◆ Print() [1/2]

void CbmVertex::Print ( )

Definition at line 82 of file CbmVertex.cxx.

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

◆ Print() [2/2]

void CbmVertex::Print ( )

◆ Reset() [1/2]

void CbmVertex::Reset ( )

Definition at line 151 of file CbmVertex.cxx.

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

◆ Reset() [2/2]

void CbmVertex::Reset ( )

◆ 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 )
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 fChi2, fCovMatrix, fNDF, fNTracks, fX, fY, fZ, i, x, y, and z.

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

Here is the caller graph for this function:

◆ 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 )
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)

References x, y, and z.

◆ SetVertexXYZ() [1/2]

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

Definition at line 88 of file CbmVertex.h.

References fX, fY, fZ, x, y, and z.

◆ SetVertexXYZ() [2/2]

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

Definition at line 88 of file CbmVertex.h.

References fX, fY, fZ, x, y, and z.

Member Data Documentation

◆ fChi2

Double32_t CbmVertex::fChi2
private

Definition at line 109 of file CbmVertex.h.

Referenced by CbmVertex(), CbmVertex(), CbmVertex(), CopyFrom(), GetChi2(), Print(), Reset(), and SetVertex().

◆ fCovMatrix

Double32_t CbmVertex::fCovMatrix
private

The sequence is a[0,0], a[0,1], a[0,2], a[1,1], a[1,2], a[2,2]

Definition at line 120 of file CbmVertex.h.

Referenced by CbmVertex(), CbmVertex(), CbmVertex(), CopyFrom(), CovMatrix(), GetCovMatrix(), Reset(), and SetVertex().

◆ fNDF

Int_t CbmVertex::fNDF
private

Definition at line 112 of file CbmVertex.h.

Referenced by CbmVertex(), CbmVertex(), CbmVertex(), CopyFrom(), GetNDF(), Print(), Reset(), and SetVertex().

◆ fNTracks

Int_t CbmVertex::fNTracks
private

Definition at line 115 of file CbmVertex.h.

Referenced by CbmVertex(), CbmVertex(), CbmVertex(), CopyFrom(), GetNTracks(), Print(), Reset(), and SetVertex().

◆ fX

Double32_t CbmVertex::fX
private

◆ fY

Double32_t CbmVertex::fY
private

◆ fZ

Double32_t CbmVertex::fZ
private

◆ trkID

std::vector< Int_t > CbmVertex::trkID

Definition at line 67 of file CbmVertex.h.

Referenced by GetCovariance(), and GetTrackInds().


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