CbmRoot
Loading...
Searching...
No Matches
CbmTrack Class Reference

#include <CbmTrack.h>

Inheritance diagram for CbmTrack:
[legend]
Collaboration diagram for CbmTrack:
[legend]

Public Member Functions

 CbmTrack ()
 
virtual ~CbmTrack ()
 
 CbmTrack (const CbmTrack &)
 
CbmTrackoperator= (const CbmTrack &)
 
void AddHit (int32_t index, HitType type)
 
virtual int32_t GetNofHits () const
 
int32_t GetHitIndex (int32_t iHit) const
 
HitType GetHitType (int32_t iHit) const
 
int32_t GetPidHypo () const
 
int32_t GetFlag () const
 
double GetChiSq () const
 
int32_t GetNDF () const
 
double GetChiSqTime () const
 
int32_t GetNdfTime () const
 
int32_t GetPreviousTrackId () const
 
const FairTrackParam * GetParamFirst () const
 
const FairTrackParam * GetParamLast () const
 
CbmMatchGetMatch () const
 
double GetStartTime () const
 
double GetStartTimeError () const
 
double GetFirstHitTime () const
 
double GetFirstHitTimeError () const
 
double GetLastHitTime () const
 
double GetLastHitTimeError () const
 
void SetPidHypo (int32_t pid)
 
void SetFlag (int32_t flag)
 
void SetChiSq (double chiSq)
 
void SetNDF (int32_t ndf)
 
void SetChiSqTime (double chiSq)
 
void SetNdfTime (int32_t ndf)
 
void SetPreviousTrackId (int32_t previousTrackId)
 
void SetParamFirst (const FairTrackParam *par)
 
void SetParamLast (const FairTrackParam *par)
 
void SetParamFirst (const FairTrackParam &par)
 
void SetParamLast (const FairTrackParam &par)
 
void SetMatch (CbmMatch *match)
 
void SetStartTime (double time)
 
void SetStartTimeError (double error)
 
void SetFirstHitTime (double time)
 
void SetFirstHitTimeError (double error)
 
void SetLastHitTime (double time)
 
void SetLastHitTimeError (double error)
 
virtual std::string ToString () const
 

Protected Member Functions

 ClassDef (CbmTrack, 6)
 

Protected Attributes

std::vector< int32_t > fHitIndex
 
std::vector< HitTypefHitType
 
int32_t fPidHypo
 
FairTrackParam fParamFirst
 
FairTrackParam fParamLast
 
double fStartTime
 
double fStartTimeError
 
double fFirstHitTime
 
double fFirstHitTimeError
 
double fLastHitTime
 
double fLastHitTimeError
 
int32_t fFlag
 
Double32_t fChiSq
 
int32_t fNDF
 
int32_t fPreviousTrackId
 
CbmMatchfMatch
 
Double32_t fChiSqTime {0.}
 
int32_t fNdfTime {0}
 

Detailed Description

Definition at line 37 of file CbmTrack.h.

Constructor & Destructor Documentation

◆ CbmTrack() [1/2]

CbmTrack::CbmTrack ( )

Default constructor

Definition at line 23 of file CbmTrack.cxx.

◆ ~CbmTrack()

CbmTrack::~CbmTrack ( )
virtual

Destructor

Definition at line 92 of file CbmTrack.cxx.

References fMatch.

◆ CbmTrack() [2/2]

CbmTrack::CbmTrack ( const CbmTrack & rhs)

Copy Constructor

Definition at line 45 of file CbmTrack.cxx.

Member Function Documentation

◆ AddHit()

◆ ClassDef()

CbmTrack::ClassDef ( CbmTrack ,
6  )
protected

◆ GetChiSq()

◆ GetChiSqTime()

double CbmTrack::GetChiSqTime ( ) const
inline

Definition at line 65 of file CbmTrack.h.

References fChiSqTime.

◆ GetFirstHitTime()

double CbmTrack::GetFirstHitTime ( ) const
inline

◆ GetFirstHitTimeError()

double CbmTrack::GetFirstHitTimeError ( ) const
inline

◆ GetFlag()

int32_t CbmTrack::GetFlag ( ) const
inline

◆ GetHitIndex()

◆ GetHitType()

◆ GetLastHitTime()

double CbmTrack::GetLastHitTime ( ) const
inline

◆ GetLastHitTimeError()

double CbmTrack::GetLastHitTimeError ( ) const
inline

◆ GetMatch()

CbmMatch * CbmTrack::GetMatch ( ) const
inline

Definition at line 70 of file CbmTrack.h.

References fMatch.

◆ GetNDF()

◆ GetNdfTime()

int32_t CbmTrack::GetNdfTime ( ) const
inline

Definition at line 66 of file CbmTrack.h.

References fNdfTime.

◆ GetNofHits()

◆ GetParamFirst()

◆ GetParamLast()

◆ GetPidHypo()

◆ GetPreviousTrackId()

int32_t CbmTrack::GetPreviousTrackId ( ) const
inline

◆ GetStartTime()

double CbmTrack::GetStartTime ( ) const
inline

◆ GetStartTimeError()

double CbmTrack::GetStartTimeError ( ) const
inline

Definition at line 72 of file CbmTrack.h.

References fStartTimeError.

Referenced by CbmBuildEventsFromTracksReal::Exec(), and CbmEventBuilderQa::Exec().

◆ operator=()

CbmTrack & CbmTrack::operator= ( const CbmTrack & rhs)

◆ SetChiSq()

◆ SetChiSqTime()

void CbmTrack::SetChiSqTime ( double chiSq)
inline

Definition at line 83 of file CbmTrack.h.

References fChiSqTime.

Referenced by CbmL1StsTrackFinder::CopyL1Tracks().

◆ SetFirstHitTime()

void CbmTrack::SetFirstHitTime ( double time)
inline

◆ SetFirstHitTimeError()

void CbmTrack::SetFirstHitTimeError ( double error)
inline

◆ SetFlag()

void CbmTrack::SetFlag ( int32_t flag)
inline

◆ SetLastHitTime()

void CbmTrack::SetLastHitTime ( double time)
inline

◆ SetLastHitTimeError()

void CbmTrack::SetLastHitTimeError ( double error)
inline

◆ SetMatch()

void CbmTrack::SetMatch ( CbmMatch * match)

Definition at line 103 of file CbmTrack.cxx.

References fMatch.

◆ SetNDF()

◆ SetNdfTime()

void CbmTrack::SetNdfTime ( int32_t ndf)
inline

Definition at line 84 of file CbmTrack.h.

References fNdfTime.

Referenced by CbmL1StsTrackFinder::CopyL1Tracks().

◆ SetParamFirst() [1/2]

void CbmTrack::SetParamFirst ( const FairTrackParam & par)
inline

Definition at line 88 of file CbmTrack.h.

References fParamFirst.

◆ SetParamFirst() [2/2]

◆ SetParamLast() [1/2]

void CbmTrack::SetParamLast ( const FairTrackParam & par)
inline

Definition at line 89 of file CbmTrack.h.

References fParamLast.

◆ SetParamLast() [2/2]

◆ SetPidHypo()

void CbmTrack::SetPidHypo ( int32_t pid)
inline

◆ SetPreviousTrackId()

void CbmTrack::SetPreviousTrackId ( int32_t previousTrackId)
inline

◆ SetStartTime()

void CbmTrack::SetStartTime ( double time)
inline

◆ SetStartTimeError()

void CbmTrack::SetStartTimeError ( double error)
inline

◆ ToString()

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

Reimplemented in CbmStsTrack, and CbmTofTrack.

Definition at line 109 of file CbmTrack.cxx.

References fChiSq, fFlag, fHitIndex, fNDF, fPidHypo, and fPreviousTrackId.

Member Data Documentation

◆ fChiSq

Double32_t CbmTrack::fChiSq
protected

Chi square and NDF of track fit

Definition at line 130 of file CbmTrack.h.

Referenced by GetChiSq(), operator=(), SetChiSq(), and ToString().

◆ fChiSqTime

Double32_t CbmTrack::fChiSqTime {0.}
protected

Chi square and NDF of track fit in time

Definition at line 140 of file CbmTrack.h.

Referenced by GetChiSqTime(), and SetChiSqTime().

◆ fFirstHitTime

double CbmTrack::fFirstHitTime
protected

Track time at the first hit

Definition at line 119 of file CbmTrack.h.

Referenced by GetFirstHitTime(), operator=(), and SetFirstHitTime().

◆ fFirstHitTimeError

double CbmTrack::fFirstHitTimeError
protected

Definition at line 120 of file CbmTrack.h.

Referenced by GetFirstHitTimeError(), operator=(), and SetFirstHitTimeError().

◆ fFlag

int32_t CbmTrack::fFlag
protected

Quality flag

Definition at line 127 of file CbmTrack.h.

Referenced by GetFlag(), operator=(), SetFlag(), and ToString().

◆ fHitIndex

std::vector<int32_t> CbmTrack::fHitIndex
protected

Array contains the hit indices of the hits attached to the track

Definition at line 102 of file CbmTrack.h.

Referenced by AddHit(), GetHitIndex(), GetNofHits(), operator=(), CbmTofTrack::SetTofHitIndex(), and ToString().

◆ fHitType

std::vector<HitType> CbmTrack::fHitType
protected

Array contains the hit types of the hits attached to the track

Definition at line 105 of file CbmTrack.h.

Referenced by AddHit(), GetHitType(), operator=(), and CbmTofTrack::SetTofHitIndex().

◆ fLastHitTime

double CbmTrack::fLastHitTime
protected

Track time at the last hit

Definition at line 123 of file CbmTrack.h.

Referenced by GetLastHitTime(), operator=(), and SetLastHitTime().

◆ fLastHitTimeError

double CbmTrack::fLastHitTimeError
protected

Definition at line 124 of file CbmTrack.h.

Referenced by GetLastHitTimeError(), operator=(), and SetLastHitTimeError().

◆ fMatch

CbmMatch* CbmTrack::fMatch
protected

Monte-Carlo information

Definition at line 137 of file CbmTrack.h.

Referenced by GetMatch(), operator=(), SetMatch(), and ~CbmTrack().

◆ fNDF

int32_t CbmTrack::fNDF
protected

Definition at line 131 of file CbmTrack.h.

Referenced by GetNDF(), operator=(), SetNDF(), and ToString().

◆ fNdfTime

int32_t CbmTrack::fNdfTime {0}
protected

Definition at line 141 of file CbmTrack.h.

Referenced by GetNdfTime(), and SetNdfTime().

◆ fParamFirst

FairTrackParam CbmTrack::fParamFirst
protected

Track parameters at first and last fitted hit

Definition at line 111 of file CbmTrack.h.

Referenced by GetParamFirst(), operator=(), SetParamFirst(), and SetParamFirst().

◆ fParamLast

FairTrackParam CbmTrack::fParamLast
protected

Definition at line 112 of file CbmTrack.h.

Referenced by GetParamLast(), operator=(), SetParamLast(), and SetParamLast().

◆ fPidHypo

int32_t CbmTrack::fPidHypo
protected

PID hypothesis used by the track fitter

Definition at line 108 of file CbmTrack.h.

Referenced by GetPidHypo(), operator=(), SetPidHypo(), and ToString().

◆ fPreviousTrackId

int32_t CbmTrack::fPreviousTrackId
protected

Index of previous track segment

Definition at line 134 of file CbmTrack.h.

Referenced by GetPreviousTrackId(), operator=(), SetPreviousTrackId(), and ToString().

◆ fStartTime

double CbmTrack::fStartTime
protected

Track start time

Definition at line 115 of file CbmTrack.h.

Referenced by GetStartTime(), operator=(), SetStartTime(), CbmStsTrack::ToString(), and CbmTofTrack::ToString().

◆ fStartTimeError

double CbmTrack::fStartTimeError
protected

Definition at line 116 of file CbmTrack.h.

Referenced by GetStartTimeError(), operator=(), and SetStartTimeError().


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