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

CbmStsTrackMatch.h. More...

#include <CbmTrackMatch.h>

Inheritance diagram for CbmTrackMatch:
Collaboration diagram for CbmTrackMatch:

Public Member Functions

 CbmTrackMatch ()
 Default constructor.
 CbmTrackMatch (Int_t mcTrackID, Int_t nTrue, Int_t nWrong, Int_t nFake, Int_t nTracks)
 Standard constructor.
virtual ~CbmTrackMatch ()
 Destructor.
Int_t GetMCTrackId () const
 Index of matched MC track.
Int_t GetNofTrueHits () const
 Number of true hits on track (from matched MC track).
Int_t GetNofWrongHits () const
 Number of wrong hits on track (from other MC tracks).
Int_t GetNofFakeHits () const
 Number of fake hits on track (from no MC track).
Int_t GetNofMCTracks () const
 Number of MCTracks with common hits.
Int_t GetNofHits () const
Double_t GetTrueOverAllHitsRatio () const
Double_t GetWrongOverAllHitsRatio () const
 CbmTrackMatch ()
 Default constructor.
 CbmTrackMatch (Int_t mcTrackID, Int_t nTrue, Int_t nWrong, Int_t nFake, Int_t nTracks)
 Standard constructor.
virtual ~CbmTrackMatch ()
 Destructor.
Int_t GetMCTrackId () const
 Index of matched MC track.
Int_t GetNofTrueHits () const
 Number of true hits on track (from matched MC track).
Int_t GetNofWrongHits () const
 Number of wrong hits on track (from other MC tracks).
Int_t GetNofFakeHits () const
 Number of fake hits on track (from no MC track).
Int_t GetNofMCTracks () const
 Number of MCTracks with common hits.
Int_t GetNofHits () const
Double_t GetTrueOverAllHitsRatio () const
Double_t GetWrongOverAllHitsRatio () const
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

Int_t fMCTrackId
 Index of matched CbmMCTrack.
Int_t fNofTrueHits
 Number of true hits (belonging to the matched MCTrack).
Int_t fNofWrongHits
 Number of wrong hits (belonging to other MCTracks).
Int_t fNofFakeHits
 Number of fake hits (belonging to no MCTrack).
Int_t fNofMCTracks
 Number of MCTrackx with common hits.

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

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

Data structure describing the matching of a reconstructed track with a Monte Carlo track on the base of corresponding hits/points. This requires matching of hits to MC points.

Definition at line 15 of file CbmTrackMatch.h.

Constructor & Destructor Documentation

◆ CbmTrackMatch() [1/4]

CbmTrackMatch::CbmTrackMatch ( )

CbmStsTrackMatch.cxx.

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

Definition at line 9 of file CbmTrackMatch.cxx.

References fMCTrackId, fNofFakeHits, fNofMCTracks, fNofTrueHits, and fNofWrongHits.

◆ CbmTrackMatch() [2/4]

CbmTrackMatch::CbmTrackMatch ( Int_t mcTrackID,
Int_t nTrue,
Int_t nWrong,
Int_t nFake,
Int_t nTracks )
Parameters
mcTrackIDIndex of matched MCTrack
nTrueNumber of true hits (belonging to matched MCTrack)
nWrongNumber of wrong Hits (from other MCTracks)
nFakeNumber of fake hits (not belonging to any MCTrack)
nTracksNumber of MCTracks with common hits

Definition at line 19 of file CbmTrackMatch.cxx.

References fMCTrackId, fNofFakeHits, fNofMCTracks, fNofTrueHits, and fNofWrongHits.

◆ ~CbmTrackMatch() [1/2]

CbmTrackMatch::~CbmTrackMatch ( )
virtual

Definition at line 29 of file CbmTrackMatch.cxx.

◆ CbmTrackMatch() [3/4]

CbmTrackMatch::CbmTrackMatch ( )

◆ CbmTrackMatch() [4/4]

CbmTrackMatch::CbmTrackMatch ( Int_t mcTrackID,
Int_t nTrue,
Int_t nWrong,
Int_t nFake,
Int_t nTracks )
Parameters
mcTrackIDIndex of matched MCTrack
nTrueNumber of true hits (belonging to matched MCTrack)
nWrongNumber of wrong Hits (from other MCTracks)
nFakeNumber of fake hits (not belonging to any MCTrack)
nTracksNumber of MCTracks with common hits

◆ ~CbmTrackMatch() [2/2]

virtual CbmTrackMatch::~CbmTrackMatch ( )
virtual

Member Function Documentation

◆ GetMCTrackId() [1/2]

Int_t CbmTrackMatch::GetMCTrackId ( ) const
inline

Definition at line 35 of file CbmTrackMatch.h.

References fMCTrackId.

Referenced by BmnMCEfficiencyTOF700(), BmnFunctionAna::ConvertRecoToTxt(), CbmKFParticlesFinder::Exec(), CbmKFParticlesFinderQA::Exec(), CbmKFTrackFitQA::Exec(), CbmKFParticlesFinderQA::MatchParticles(), and BmnTrackingQa::ProcessGlobal().

Here is the caller graph for this function:

◆ GetMCTrackId() [2/2]

Int_t CbmTrackMatch::GetMCTrackId ( ) const
inline

Definition at line 35 of file CbmTrackMatch.h.

References fMCTrackId.

◆ GetNofFakeHits() [1/2]

Int_t CbmTrackMatch::GetNofFakeHits ( ) const
inline

Definition at line 44 of file CbmTrackMatch.h.

References fNofFakeHits.

Referenced by BmnMCEfficiencyTOF700().

Here is the caller graph for this function:

◆ GetNofFakeHits() [2/2]

Int_t CbmTrackMatch::GetNofFakeHits ( ) const
inline

Definition at line 44 of file CbmTrackMatch.h.

References fNofFakeHits.

◆ GetNofHits() [1/2]

Int_t CbmTrackMatch::GetNofHits ( ) const
inline

Definition at line 49 of file CbmTrackMatch.h.

References fNofFakeHits, fNofTrueHits, and fNofWrongHits.

Referenced by BmnMCEfficiencyTOF700(), GetTrueOverAllHitsRatio(), and GetWrongOverAllHitsRatio().

Here is the caller graph for this function:

◆ GetNofHits() [2/2]

Int_t CbmTrackMatch::GetNofHits ( ) const
inline

Definition at line 49 of file CbmTrackMatch.h.

References fNofFakeHits, fNofTrueHits, and fNofWrongHits.

◆ GetNofMCTracks() [1/2]

Int_t CbmTrackMatch::GetNofMCTracks ( ) const
inline

Definition at line 47 of file CbmTrackMatch.h.

References fNofMCTracks.

Referenced by BmnMCEfficiencyTOF700(), CbmKFParticlesFinder::Exec(), CbmKFParticlesFinderQA::Exec(), CbmKFTrackFitQA::Exec(), and CbmKFParticlesFinderQA::MatchParticles().

Here is the caller graph for this function:

◆ GetNofMCTracks() [2/2]

Int_t CbmTrackMatch::GetNofMCTracks ( ) const
inline

Definition at line 47 of file CbmTrackMatch.h.

References fNofMCTracks.

◆ GetNofTrueHits() [1/2]

Int_t CbmTrackMatch::GetNofTrueHits ( ) const
inline

Definition at line 38 of file CbmTrackMatch.h.

References fNofTrueHits.

Referenced by BmnMCEfficiencyTOF700().

Here is the caller graph for this function:

◆ GetNofTrueHits() [2/2]

Int_t CbmTrackMatch::GetNofTrueHits ( ) const
inline

Definition at line 38 of file CbmTrackMatch.h.

References fNofTrueHits.

◆ GetNofWrongHits() [1/2]

Int_t CbmTrackMatch::GetNofWrongHits ( ) const
inline

Definition at line 41 of file CbmTrackMatch.h.

References fNofWrongHits.

Referenced by BmnMCEfficiencyTOF700().

Here is the caller graph for this function:

◆ GetNofWrongHits() [2/2]

Int_t CbmTrackMatch::GetNofWrongHits ( ) const
inline

Definition at line 41 of file CbmTrackMatch.h.

References fNofWrongHits.

◆ GetTrueOverAllHitsRatio() [1/2]

Double_t CbmTrackMatch::GetTrueOverAllHitsRatio ( ) const
inline

Definition at line 50 of file CbmTrackMatch.h.

References fNofTrueHits, and GetNofHits().

Referenced by BmnMCEfficiencyTOF700(), and BmnTrackingQa::ProcessGlobal().

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

◆ GetTrueOverAllHitsRatio() [2/2]

Double_t CbmTrackMatch::GetTrueOverAllHitsRatio ( ) const
inline

Definition at line 50 of file CbmTrackMatch.h.

References fNofTrueHits, and GetNofHits().

Here is the call graph for this function:

◆ GetWrongOverAllHitsRatio() [1/2]

Double_t CbmTrackMatch::GetWrongOverAllHitsRatio ( ) const
inline

Definition at line 55 of file CbmTrackMatch.h.

References fNofFakeHits, fNofWrongHits, and GetNofHits().

Here is the call graph for this function:

◆ GetWrongOverAllHitsRatio() [2/2]

Double_t CbmTrackMatch::GetWrongOverAllHitsRatio ( ) const
inline

Definition at line 55 of file CbmTrackMatch.h.

References fNofFakeHits, fNofWrongHits, and GetNofHits().

Here is the call graph for this function:

Member Data Documentation

◆ fMCTrackId

Int_t CbmTrackMatch::fMCTrackId
private

Definition at line 63 of file CbmTrackMatch.h.

Referenced by CbmTrackMatch(), CbmTrackMatch(), and GetMCTrackId().

◆ fNofFakeHits

Int_t CbmTrackMatch::fNofFakeHits
private

◆ fNofMCTracks

Int_t CbmTrackMatch::fNofMCTracks
private

Definition at line 75 of file CbmTrackMatch.h.

Referenced by CbmTrackMatch(), CbmTrackMatch(), and GetNofMCTracks().

◆ fNofTrueHits

Int_t CbmTrackMatch::fNofTrueHits
private

◆ fNofWrongHits

Int_t CbmTrackMatch::fNofWrongHits
private

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