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

#include <CbmTofTrack.h>

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

Public Member Functions

 CbmTofTrack ()
 
virtual ~CbmTofTrack ()
 
void AddTofHit (int32_t hitIndex)
 
int32_t GetPidHypo () const
 
float GetMass () const
 
int32_t GetTofHitIndex () const
 
double GetTrackDx () const
 
double GetTrackDy () const
 
int32_t GetTrackIndex () const
 
double GetTrackLength () const
 
const FairTrackParam * GetTrackParameter () const
 
double GetTrackX () const
 
double GetTrackY () const
 
double GetDistance () const
 
void SetTrackIndex (int32_t trackIndex)
 
void SetTofHitIndex (int32_t tofHitIndex)
 
void SetTrackParameter (const FairTrackParam *par)
 
void SetTrackLength (double trackLength)
 
void SetPidHypo (int32_t pid)
 
void SetMass (float mass)
 
void SetDistance (double distance)
 
int32_t GetNofTofHits () const
 
int32_t GetTofHitIndex (int32_t iHit) const
 
virtual std::string ToString () const
 
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 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 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 SetParamFirst (const FairTrackParam &par)
 
void SetParamLast (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)
 

Protected Member Functions

 ClassDef (CbmTrack, 6)
 

Protected Attributes

std::vector< int32_t > fHitIndex
 
std::vector< HitTypefHitType
 
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}
 

Private Member Functions

 ClassDef (CbmTofTrack, 3)
 

Private Attributes

int32_t fGlbTrack
 Index of global track.
 
double fTrackLength
 Track length from primary vertex to TOF [cm].
 
FairTrackParam fTrackPar
 Track parameters at z of TofHit.
 
int32_t fPidHypo
 PID hypothesis used for track extrapolation.
 
float fMass
 Mass from Tof.
 
double fDistance = 0.
 Normalized distance from hit to track.
 

Detailed Description

Definition at line 33 of file CbmTofTrack.h.

Constructor & Destructor Documentation

◆ CbmTofTrack()

CbmTofTrack::CbmTofTrack ( )

Default constructor

Definition at line 22 of file CbmTofTrack.cxx.

◆ ~CbmTofTrack()

CbmTofTrack::~CbmTofTrack ( )
virtual

Destructor

Definition at line 27 of file CbmTofTrack.cxx.

Member Function Documentation

◆ AddHit()

void CbmTrack::AddHit ( int32_t index,
HitType type )
inherited

◆ AddTofHit()

void CbmTofTrack::AddTofHit ( int32_t hitIndex)
inline

Associate a TofHit to the track

Parameters
hitIndexIndex of the TOF hit in TClonesArray

Definition at line 45 of file CbmTofTrack.h.

References CbmTrack::AddHit(), and kTOFHIT.

Referenced by SetTofHitIndex().

◆ ClassDef() [1/2]

CbmTofTrack::ClassDef ( CbmTofTrack ,
3  )
private

◆ ClassDef() [2/2]

CbmTrack::ClassDef ( CbmTrack ,
6  )
protectedinherited

◆ GetChiSq()

◆ GetChiSqTime()

double CbmTrack::GetChiSqTime ( ) const
inlineinherited

Definition at line 65 of file CbmTrack.h.

References CbmTrack::fChiSqTime.

◆ GetDistance()

double CbmTofTrack::GetDistance ( ) const
inline

Normalized distance from hit to track

Definition at line 79 of file CbmTofTrack.h.

References fDistance.

Referenced by LmvmTask::CheckTofIdentification(), CbmHadronAnalysis::ExecEvent(), LmvmTask::FillCands(), and CbmLitTofQa::ProcessTofTracks().

◆ GetFirstHitTime()

double CbmTrack::GetFirstHitTime ( ) const
inlineinherited

◆ GetFirstHitTimeError()

double CbmTrack::GetFirstHitTimeError ( ) const
inlineinherited

◆ GetFlag()

int32_t CbmTrack::GetFlag ( ) const
inlineinherited

◆ GetHitIndex()

◆ GetHitType()

◆ GetLastHitTime()

double CbmTrack::GetLastHitTime ( ) const
inlineinherited

◆ GetLastHitTimeError()

double CbmTrack::GetLastHitTimeError ( ) const
inlineinherited

◆ GetMass()

float CbmTofTrack::GetMass ( ) const
inline

mass hypothesis from TOF

Definition at line 52 of file CbmTofTrack.h.

References fMass.

Referenced by CbmHadronAnalysis::ExecEvent().

◆ GetMatch()

CbmMatch * CbmTrack::GetMatch ( ) const
inlineinherited

Definition at line 70 of file CbmTrack.h.

References CbmTrack::fMatch.

◆ GetNDF()

◆ GetNdfTime()

int32_t CbmTrack::GetNdfTime ( ) const
inlineinherited

Definition at line 66 of file CbmTrack.h.

References CbmTrack::fNdfTime.

◆ GetNofHits()

◆ GetNofTofHits()

int32_t CbmTofTrack::GetNofTofHits ( ) const
inline

Number of TOF hits

Returns
Number of TOF hits associated to the track

Definition at line 111 of file CbmTofTrack.h.

References CbmTrack::GetNofHits().

Referenced by GetTofHitIndex(), and ToString().

◆ GetParamFirst()

◆ GetParamLast()

◆ GetPidHypo()

int32_t CbmTofTrack::GetPidHypo ( ) const
inline

PID hypothesis for track extrapolation to TOF

Definition at line 49 of file CbmTofTrack.h.

References fPidHypo.

◆ GetPreviousTrackId()

int32_t CbmTrack::GetPreviousTrackId ( ) const
inlineinherited

◆ GetStartTime()

double CbmTrack::GetStartTime ( ) const
inlineinherited

◆ GetStartTimeError()

double CbmTrack::GetStartTimeError ( ) const
inlineinherited

Definition at line 72 of file CbmTrack.h.

References CbmTrack::fStartTimeError.

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

◆ GetTofHitIndex() [1/2]

int32_t CbmTofTrack::GetTofHitIndex ( ) const
inline

◆ GetTofHitIndex() [2/2]

int32_t CbmTofTrack::GetTofHitIndex ( int32_t iHit) const
inline

Index of a TOF hit @value Array index of the ith TOF hit of the track

Throws std::vector exception if out of bounds.

Definition at line 119 of file CbmTofTrack.h.

References CbmTrack::GetHitIndex(), and GetNofTofHits().

◆ GetTrackDx()

double CbmTofTrack::GetTrackDx ( ) const
inline

Error of track x coordinate at TOF

Definition at line 58 of file CbmTofTrack.h.

References fTrackPar, and sqrt().

◆ GetTrackDy()

double CbmTofTrack::GetTrackDy ( ) const
inline

Error of track x coordinate at TOF

Definition at line 61 of file CbmTofTrack.h.

References fTrackPar, and sqrt().

◆ GetTrackIndex()

int32_t CbmTofTrack::GetTrackIndex ( ) const
inline

Index of global track

Definition at line 64 of file CbmTofTrack.h.

References fGlbTrack.

Referenced by CbmLitFindGlobalTracks::CalculateLength(), CbmHadronAnalysis::ExecEvent(), and CbmLitTofQa::ProcessTofTracks().

◆ GetTrackLength()

double CbmTofTrack::GetTrackLength ( ) const
inline

Track length from primary vertex to TOF

Definition at line 67 of file CbmTofTrack.h.

References fTrackLength.

Referenced by CbmHadronAnalysis::ExecEvent(), and CbmLitTofQa::ProcessTofTracks().

◆ GetTrackParameter()

const FairTrackParam * CbmTofTrack::GetTrackParameter ( ) const
inline

Track parameters at TOF

Definition at line 70 of file CbmTofTrack.h.

References fTrackPar.

Referenced by CbmHadronAnalysis::ExecEvent(), and CbmLitTofQa::ProcessTofTracks().

◆ GetTrackX()

double CbmTofTrack::GetTrackX ( ) const
inline

Track x position at TOF

Definition at line 73 of file CbmTofTrack.h.

References fTrackPar.

◆ GetTrackY()

double CbmTofTrack::GetTrackY ( ) const
inline

Track y position at TOF

Definition at line 76 of file CbmTofTrack.h.

References fTrackPar.

◆ SetChiSq()

◆ SetChiSqTime()

void CbmTrack::SetChiSqTime ( double chiSq)
inlineinherited

Definition at line 83 of file CbmTrack.h.

References CbmTrack::fChiSqTime.

Referenced by CbmL1StsTrackFinder::CopyL1Tracks().

◆ SetDistance()

void CbmTofTrack::SetDistance ( double distance)
inline

Set normalized distance from hit to track

Definition at line 105 of file CbmTofTrack.h.

References fDistance.

Referenced by CbmLitConverter::LitTrackVectorToGlobalTrackArray().

◆ SetFirstHitTime()

void CbmTrack::SetFirstHitTime ( double time)
inlineinherited

◆ SetFirstHitTimeError()

void CbmTrack::SetFirstHitTimeError ( double error)
inlineinherited

◆ SetFlag()

void CbmTrack::SetFlag ( int32_t flag)
inlineinherited

◆ SetLastHitTime()

void CbmTrack::SetLastHitTime ( double time)
inlineinherited

◆ SetLastHitTimeError()

void CbmTrack::SetLastHitTimeError ( double error)
inlineinherited

◆ SetMass()

void CbmTofTrack::SetMass ( float mass)
inline

Set mass from TOF

Definition at line 102 of file CbmTofTrack.h.

References fMass.

Referenced by CbmHadronAnalysis::ExecEvent().

◆ SetMatch()

void CbmTrack::SetMatch ( CbmMatch * match)
inherited

Definition at line 103 of file CbmTrack.cxx.

References CbmTrack::fMatch.

◆ SetNDF()

◆ SetNdfTime()

void CbmTrack::SetNdfTime ( int32_t ndf)
inlineinherited

Definition at line 84 of file CbmTrack.h.

References CbmTrack::fNdfTime.

Referenced by CbmL1StsTrackFinder::CopyL1Tracks().

◆ SetParamFirst() [1/2]

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

Definition at line 88 of file CbmTrack.h.

References CbmTrack::fParamFirst.

◆ SetParamFirst() [2/2]

◆ SetParamLast() [1/2]

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

Definition at line 89 of file CbmTrack.h.

References CbmTrack::fParamLast.

◆ SetParamLast() [2/2]

◆ SetPidHypo()

void CbmTofTrack::SetPidHypo ( int32_t pid)
inline

Set PID hypothesis for track extrapolation to TOF

Definition at line 99 of file CbmTofTrack.h.

References fPidHypo.

◆ SetPreviousTrackId()

void CbmTrack::SetPreviousTrackId ( int32_t previousTrackId)
inlineinherited

◆ SetStartTime()

void CbmTrack::SetStartTime ( double time)
inlineinherited

◆ SetStartTimeError()

void CbmTrack::SetStartTimeError ( double error)
inlineinherited

◆ SetTofHitIndex()

void CbmTofTrack::SetTofHitIndex ( int32_t tofHitIndex)
inline

Set TOF hit index

Definition at line 85 of file CbmTofTrack.h.

References AddTofHit(), CbmTrack::fHitIndex, and CbmTrack::fHitType.

Referenced by CbmLitConverter::LitTrackVectorToGlobalTrackArray().

◆ SetTrackIndex()

void CbmTofTrack::SetTrackIndex ( int32_t trackIndex)
inline

Set track index

Definition at line 82 of file CbmTofTrack.h.

References fGlbTrack.

Referenced by CbmLitConverter::LitTrackVectorToGlobalTrackArray().

◆ SetTrackLength()

void CbmTofTrack::SetTrackLength ( double trackLength)
inline

Set track length

Definition at line 96 of file CbmTofTrack.h.

References fTrackLength.

Referenced by CbmLitFindGlobalTracks::CalculateLength().

◆ SetTrackParameter()

void CbmTofTrack::SetTrackParameter ( const FairTrackParam * par)
inline

Set track parameter

Definition at line 93 of file CbmTofTrack.h.

References fTrackPar.

Referenced by CbmLitConverter::LitTrackVectorToGlobalTrackArray().

◆ ToString()

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

Member Data Documentation

◆ fChiSq

Double32_t CbmTrack::fChiSq
protectedinherited

Chi square and NDF of track fit

Definition at line 130 of file CbmTrack.h.

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

◆ fChiSqTime

Double32_t CbmTrack::fChiSqTime {0.}
protectedinherited

Chi square and NDF of track fit in time

Definition at line 140 of file CbmTrack.h.

Referenced by CbmTrack::GetChiSqTime(), and CbmTrack::SetChiSqTime().

◆ fDistance

double CbmTofTrack::fDistance = 0.
private

Normalized distance from hit to track.

Definition at line 135 of file CbmTofTrack.h.

Referenced by GetDistance(), and SetDistance().

◆ fFirstHitTime

double CbmTrack::fFirstHitTime
protectedinherited

Track time at the first hit

Definition at line 119 of file CbmTrack.h.

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

◆ fFirstHitTimeError

double CbmTrack::fFirstHitTimeError
protectedinherited

◆ fFlag

int32_t CbmTrack::fFlag
protectedinherited

Quality flag

Definition at line 127 of file CbmTrack.h.

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

◆ fGlbTrack

int32_t CbmTofTrack::fGlbTrack
private

Index of global track.

Definition at line 130 of file CbmTofTrack.h.

Referenced by GetTrackIndex(), and SetTrackIndex().

◆ fHitIndex

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

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

Definition at line 102 of file CbmTrack.h.

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

◆ fHitType

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

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

Definition at line 105 of file CbmTrack.h.

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

◆ fLastHitTime

double CbmTrack::fLastHitTime
protectedinherited

Track time at the last hit

Definition at line 123 of file CbmTrack.h.

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

◆ fLastHitTimeError

double CbmTrack::fLastHitTimeError
protectedinherited

◆ fMass

float CbmTofTrack::fMass
private

Mass from Tof.

Definition at line 134 of file CbmTofTrack.h.

Referenced by GetMass(), and SetMass().

◆ fMatch

CbmMatch* CbmTrack::fMatch
protectedinherited

Monte-Carlo information

Definition at line 137 of file CbmTrack.h.

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

◆ fNDF

int32_t CbmTrack::fNDF
protectedinherited

◆ fNdfTime

int32_t CbmTrack::fNdfTime {0}
protectedinherited

Definition at line 141 of file CbmTrack.h.

Referenced by CbmTrack::GetNdfTime(), and CbmTrack::SetNdfTime().

◆ fParamFirst

FairTrackParam CbmTrack::fParamFirst
protectedinherited

Track parameters at first and last fitted hit

Definition at line 111 of file CbmTrack.h.

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

◆ fParamLast

FairTrackParam CbmTrack::fParamLast
protectedinherited

◆ fPidHypo

int32_t CbmTofTrack::fPidHypo
private

PID hypothesis used for track extrapolation.

Definition at line 133 of file CbmTofTrack.h.

Referenced by GetPidHypo(), and SetPidHypo().

◆ fPreviousTrackId

int32_t CbmTrack::fPreviousTrackId
protectedinherited

Index of previous track segment

Definition at line 134 of file CbmTrack.h.

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

◆ fStartTime

double CbmTrack::fStartTime
protectedinherited

◆ fStartTimeError

double CbmTrack::fStartTimeError
protectedinherited

◆ fTrackLength

double CbmTofTrack::fTrackLength
private

Track length from primary vertex to TOF [cm].

Definition at line 131 of file CbmTofTrack.h.

Referenced by GetTrackLength(), and SetTrackLength().

◆ fTrackPar

FairTrackParam CbmTofTrack::fTrackPar
private

Track parameters at z of TofHit.

Definition at line 132 of file CbmTofTrack.h.

Referenced by GetTrackDx(), GetTrackDy(), GetTrackParameter(), GetTrackX(), GetTrackY(), and SetTrackParameter().


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