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

#include <BmnVertex.h>

Inheritance diagram for BmnVertex:
Collaboration diagram for BmnVertex:

Public Member Functions

 BmnVertex ()
 Default constructor.
 BmnVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat, Int_t flag, vector< Int_t > idxs)
 Constructor with all member variables.
virtual ~BmnVertex ()
 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 > & GetTrackIdxs ()
Int_t GetFlag ()
void Reset ()
 Reset the member variables.
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat, Int_t flag, vector< Int_t > idxs)
 Set the member variables.
virtual std::string ToString () const
 String output.
 BmnVertex ()
 Default constructor.
 BmnVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat, Int_t flag, vector< Int_t > idxs)
 Constructor with all member variables.
virtual ~BmnVertex ()
 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 > & GetTrackIdxs ()
Int_t GetFlag ()
void Reset ()
 Reset the member variables.
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat, Int_t flag, vector< Int_t > idxs)
 Set the member variables.
virtual std::string ToString () const
 String output.
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 Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) 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 const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
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)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") 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 void Print (Option_t *option="") const
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)
virtual void Streamer (TBuffer &)
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

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.
vector< Int_t > fTrackIdxs
 Vector of indexes of tracks used to reconstruct current vertex.
Int_t fFlag
 Flag to mark vertexes by types for SRC setup next types are used: -1 - default value, vertex not defined 10 - vertex reconstructed by left arm track + right arm track + global tracks with upstream part 11 - vertex reconstructed by left arm track + right arm track 12 - vertex reconstructed by left arm track + global tracks with upstream part 13 - vertex reconstructed by right arm track + global tracks with upstream part.

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
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)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
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 TObject
 kOnlyPrepStep

Detailed Description

Definition at line 21 of file BmnVertex.h.

Constructor & Destructor Documentation

◆ BmnVertex() [1/4]

BmnVertex::BmnVertex ( )

Definition at line 10 of file BmnVertex.cxx.

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

Referenced by ToString().

Here is the caller graph for this function:

◆ BmnVertex() [2/4]

BmnVertex::BmnVertex ( Double_t x,
Double_t y,
Double_t z,
Double_t chi2,
Int_t ndf,
Int_t nTracks,
const TMatrixFSym & covMat,
Int_t flag,
vector< Int_t > idxs )
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)
flagvertex type
idxsVector of indexes of tracks used to reconstruct current vertex

Definition at line 27 of file BmnVertex.cxx.

References fChi2, fCovMatrix, fFlag, fNDF, fNTracks, fTrackIdxs, fX, fY, fZ, x, y, and z.

◆ ~BmnVertex() [1/2]

BmnVertex::~BmnVertex ( )
virtual

Definition at line 61 of file BmnVertex.cxx.

◆ BmnVertex() [3/4]

BmnVertex::BmnVertex ( )

◆ BmnVertex() [4/4]

BmnVertex::BmnVertex ( Double_t x,
Double_t y,
Double_t z,
Double_t chi2,
Int_t ndf,
Int_t nTracks,
const TMatrixFSym & covMat,
Int_t flag,
vector< Int_t > idxs )
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)
flagvertex type
idxsVector of indexes of tracks used to reconstruct current vertex

References x, y, and z.

◆ ~BmnVertex() [2/2]

virtual BmnVertex::~BmnVertex ( )
virtual

Member Function Documentation

◆ CovMatrix() [1/2]

void BmnVertex::CovMatrix ( TMatrixFSym & covMat) const

Definition at line 78 of file BmnVertex.cxx.

References fCovMatrix, and i.

Referenced by GetCovariance().

Here is the caller graph for this function:

◆ CovMatrix() [2/2]

void BmnVertex::CovMatrix ( TMatrixFSym & covMat) const

◆ GetChi2() [1/2]

Double_t BmnVertex::GetChi2 ( ) const
inline

Definition at line 58 of file BmnVertex.h.

References fChi2.

◆ GetChi2() [2/2]

Double_t BmnVertex::GetChi2 ( ) const
inline

Definition at line 58 of file BmnVertex.h.

References fChi2.

◆ GetCovariance() [1/2]

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

Definition at line 92 of file BmnVertex.cxx.

References CovMatrix(), and i.

Here is the call graph for this function:

◆ GetCovariance() [2/2]

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

References i.

◆ GetFlag() [1/2]

Int_t BmnVertex::GetFlag ( )
inline

Definition at line 65 of file BmnVertex.h.

References fFlag.

◆ GetFlag() [2/2]

Int_t BmnVertex::GetFlag ( )
inline

Definition at line 65 of file BmnVertex.h.

References fFlag.

◆ GetNDF() [1/2]

Int_t BmnVertex::GetNDF ( ) const
inline

Definition at line 59 of file BmnVertex.h.

References fNDF.

◆ GetNDF() [2/2]

Int_t BmnVertex::GetNDF ( ) const
inline

Definition at line 59 of file BmnVertex.h.

References fNDF.

◆ GetNTracks() [1/2]

Int_t BmnVertex::GetNTracks ( ) const
inline

Definition at line 60 of file BmnVertex.h.

References fNTracks.

Referenced by BmnDataAnalRun7::calcResiduals(), BmnEfficiency::Efficiency(), FilterPV(), FilterPV(), and mdst_converter().

Here is the caller graph for this function:

◆ GetNTracks() [2/2]

Int_t BmnVertex::GetNTracks ( ) const
inline

Definition at line 60 of file BmnVertex.h.

References fNTracks.

◆ GetTrackIdxs() [1/2]

std::vector< Int_t > & BmnVertex::GetTrackIdxs ( )
inline

Definition at line 64 of file BmnVertex.h.

References fTrackIdxs.

◆ GetTrackIdxs() [2/2]

std::vector< Int_t > & BmnVertex::GetTrackIdxs ( )
inline

Definition at line 64 of file BmnVertex.h.

References fTrackIdxs.

◆ GetX() [1/2]

Double_t BmnVertex::GetX ( ) const
inline

Definition at line 55 of file BmnVertex.h.

References fX.

Referenced by BmnEfficiency::Efficiency().

Here is the caller graph for this function:

◆ GetX() [2/2]

Double_t BmnVertex::GetX ( ) const
inline

Definition at line 55 of file BmnVertex.h.

References fX.

◆ GetY() [1/2]

Double_t BmnVertex::GetY ( ) const
inline

Definition at line 56 of file BmnVertex.h.

References fY.

Referenced by BmnEfficiency::Efficiency().

Here is the caller graph for this function:

◆ GetY() [2/2]

Double_t BmnVertex::GetY ( ) const
inline

Definition at line 56 of file BmnVertex.h.

References fY.

◆ GetZ() [1/2]

Double_t BmnVertex::GetZ ( ) const
inline

Definition at line 57 of file BmnVertex.h.

References fZ.

Referenced by BmnDataAnalRun7::calcResiduals(), BmnEfficiency::Efficiency(), FilterPV(), FilterPV(), and mdst_converter().

Here is the caller graph for this function:

◆ GetZ() [2/2]

Double_t BmnVertex::GetZ ( ) const
inline

Definition at line 57 of file BmnVertex.h.

References fZ.

◆ Position() [1/2]

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

Definition at line 61 of file BmnVertex.h.

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

Here is the call graph for this function:

◆ Position() [2/2]

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

Definition at line 61 of file BmnVertex.h.

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

Here is the call graph for this function:

◆ Print() [1/2]

void BmnVertex::Print ( )

Definition at line 65 of file BmnVertex.cxx.

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

Referenced by SrcVertexFinder::Exec().

Here is the caller graph for this function:

◆ Print() [2/2]

void BmnVertex::Print ( )

◆ Reset() [1/2]

void BmnVertex::Reset ( )

Definition at line 136 of file BmnVertex.cxx.

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

◆ Reset() [2/2]

void BmnVertex::Reset ( )

◆ SetVertex() [1/2]

void BmnVertex::SetVertex ( Double_t x,
Double_t y,
Double_t z,
Double_t chi2,
Int_t ndf,
Int_t nTracks,
const TMatrixFSym & covMat,
Int_t flag,
vector< Int_t > idxs )
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)
flagvertex type
idxsVector of indexes of tracks used to reconstruct current vertex

Definition at line 103 of file BmnVertex.cxx.

References fChi2, fCovMatrix, fFlag, fNDF, fNTracks, fTrackIdxs, fX, fY, fZ, i, x, y, and z.

◆ SetVertex() [2/2]

void BmnVertex::SetVertex ( Double_t x,
Double_t y,
Double_t z,
Double_t chi2,
Int_t ndf,
Int_t nTracks,
const TMatrixFSym & covMat,
Int_t flag,
vector< Int_t > idxs )
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)
flagvertex type
idxsVector of indexes of tracks used to reconstruct current vertex

References x, y, and z.

◆ ToString() [1/2]

string BmnVertex::ToString ( ) const
virtual

Definition at line 148 of file BmnVertex.cxx.

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

◆ ToString() [2/2]

virtual std::string BmnVertex::ToString ( ) const
virtual

References BmnVertex(), fChi2, fCovMatrix, fFlag, fNDF, fNTracks, fTrackIdxs, fX, fY, and fZ.

Here is the call graph for this function:

Member Data Documentation

◆ fChi2

Double32_t BmnVertex::fChi2
private

Definition at line 99 of file BmnVertex.h.

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

◆ fCovMatrix

Double32_t BmnVertex::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 110 of file BmnVertex.h.

Referenced by BmnVertex(), BmnVertex(), CovMatrix(), Reset(), SetVertex(), and ToString().

◆ fFlag

Int_t BmnVertex::fFlag
private

Definition at line 122 of file BmnVertex.h.

Referenced by BmnVertex(), BmnVertex(), GetFlag(), Print(), Reset(), SetVertex(), and ToString().

◆ fNDF

Int_t BmnVertex::fNDF
private

Definition at line 102 of file BmnVertex.h.

Referenced by BmnVertex(), BmnVertex(), GetNDF(), Print(), Reset(), SetVertex(), and ToString().

◆ fNTracks

Int_t BmnVertex::fNTracks
private

Definition at line 105 of file BmnVertex.h.

Referenced by BmnVertex(), BmnVertex(), GetNTracks(), Print(), Reset(), SetVertex(), and ToString().

◆ fTrackIdxs

vector< Int_t > BmnVertex::fTrackIdxs
private

Definition at line 113 of file BmnVertex.h.

Referenced by BmnVertex(), BmnVertex(), GetTrackIdxs(), Reset(), SetVertex(), and ToString().

◆ fX

Double32_t BmnVertex::fX
private

Definition at line 96 of file BmnVertex.h.

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

◆ fY

Double32_t BmnVertex::fY
private

Definition at line 96 of file BmnVertex.h.

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

◆ fZ

Double32_t BmnVertex::fZ
private

Definition at line 96 of file BmnVertex.h.

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


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