CbmRoot
CbmLitTrack Class Reference

Base data class for track. More...

#include <CbmLitTrack.h>

Collaboration diagram for CbmLitTrack:
[legend]

Public Member Functions

 CbmLitTrack ()
 Constructor. More...
 
virtual ~CbmLitTrack ()
 Destructor. More...
 
Int_t GetNofHits () const
 
LitTrackQa GetQuality () const
 
litfloat GetChi2 () const
 
Int_t GetNDF () const
 
Int_t GetPreviousTrackId () const
 
Int_t GetPDG () const
 
const CbmLitTrackParamGetParamFirst () const
 
const CbmLitTrackParamGetParamLast () const
 
Int_t GetLastStationId () const
 
const CbmLitHitGetHit (Int_t index) const
 
const vector< const CbmLitHit * > & GetHits () const
 
const CbmLitFitNodeGetFitNode (Int_t index) const
 
const vector< CbmLitFitNode > & GetFitNodes () const
 
Int_t GetNofMissingHits () const
 
Int_t GetRefId () const
 
litfloat GetLength () const
 
void SetQuality (LitTrackQa quality)
 
void SetChi2 (litfloat chi2)
 
void SetNDF (Int_t ndf)
 
void SetPreviousTrackId (Int_t id)
 
void SetPDG (Int_t pdg)
 
void SetParamFirst (const CbmLitTrackParam *par)
 
void SetParamLast (const CbmLitTrackParam *par)
 
void SetNofHits (Int_t nofHits)
 
void SetLastStationId (Int_t lastPlaneId)
 
void SetFitNodes (const vector< CbmLitFitNode > &nodes)
 
void SetNofMissingHits (Int_t nofMissingHits)
 
void SetRefId (Int_t refId)
 
void SetLength (litfloat length)
 
void AddHit (const CbmLitHit *hit)
 Add hit to track. No additional memory is allocated for hit. More...
 
void ClearHits ()
 Remove all hits from track. Do not delete memory. More...
 
void RemoveHit (Int_t index)
 Remove hit and corresponding fit node. More...
 
void SortHits (Bool_t downstream=true)
 Sort hits by Z position. More...
 
Bool_t CheckParams () const
 Return true if track parameters are correct. More...
 
string ToString () const
 Return string representation of class. More...
 

Private Attributes

vector< const CbmLitHit * > fHits
 
CbmLitTrackParam fParamFirst
 
CbmLitTrackParam fParamLast
 
vector< CbmLitFitNodefFitNodes
 
LitTrackQa fQuality
 
litfloat fChi2
 
Int_t fNDF
 
Int_t fPreviousTrackId
 
Int_t fLastStationId
 
Int_t fPDG
 
Int_t fNofMissingHits
 
Int_t fRefId
 
litfloat fLength
 

Detailed Description

Base data class for track.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2008

Definition at line 30 of file CbmLitTrack.h.

Constructor & Destructor Documentation

◆ CbmLitTrack()

CbmLitTrack::CbmLitTrack ( )
inline

Constructor.

Definition at line 35 of file CbmLitTrack.h.

◆ ~CbmLitTrack()

virtual CbmLitTrack::~CbmLitTrack ( )
inlinevirtual

Destructor.

Definition at line 53 of file CbmLitTrack.h.

Member Function Documentation

◆ AddHit()

void CbmLitTrack::AddHit ( const CbmLitHit hit)
inline

Add hit to track. No additional memory is allocated for hit.

Definition at line 96 of file CbmLitTrack.h.

References fHits.

Referenced by CbmLitConverter::CbmTrackToCbmLitTrack(), CbmLitTrackFinderNN::FollowTracks(), CbmLitTrackFinderBranch::FollowTracks(), and LitCudaTrackToCbmLitTrack().

◆ CheckParams()

Bool_t CbmLitTrack::CheckParams ( ) const
inline

Return true if track parameters are correct.

Returns
True if track parameters are correct.

Definition at line 127 of file CbmLitTrack.h.

References fParamFirst, fParamLast, CbmLitTrackParam::GetCovMatrix(), GetNofHits(), and i.

Referenced by CbmLitTrackFinderNN::CopyToOutput(), and CbmLitTrackFinderBranch::CopyToOutput().

◆ ClearHits()

void CbmLitTrack::ClearHits ( )
inline

Remove all hits from track. Do not delete memory.

Definition at line 101 of file CbmLitTrack.h.

References fHits.

◆ GetChi2()

◆ GetFitNode()

const CbmLitFitNode* CbmLitTrack::GetFitNode ( Int_t  index) const
inline

Definition at line 67 of file CbmLitTrack.h.

References fFitNodes.

Referenced by CbmLitConverter::CbmLitTrackToCbmTrack(), and CbmLitTrackFitterIter::Fit().

◆ GetFitNodes()

const vector<CbmLitFitNode>& CbmLitTrack::GetFitNodes ( ) const
inline

◆ GetHit()

◆ GetHits()

const vector<const CbmLitHit*>& CbmLitTrack::GetHits ( ) const
inline

Definition at line 66 of file CbmLitTrack.h.

References fHits.

◆ GetLastStationId()

Int_t CbmLitTrack::GetLastStationId ( ) const
inline

Definition at line 64 of file CbmLitTrack.h.

References fLastStationId.

Referenced by CompareTrackPtrLastStationIdMore::operator()().

◆ GetLength()

litfloat CbmLitTrack::GetLength ( ) const
inline

Definition at line 73 of file CbmLitTrack.h.

References fLength.

◆ GetNDF()

Int_t CbmLitTrack::GetNDF ( ) const
inline

Definition at line 59 of file CbmLitTrack.h.

References fNDF.

Referenced by CompareTrackPtrChiSqOverNdfLess::operator()().

◆ GetNofHits()

◆ GetNofMissingHits()

Int_t CbmLitTrack::GetNofMissingHits ( ) const
inline

◆ GetParamFirst()

const CbmLitTrackParam* CbmLitTrack::GetParamFirst ( ) const
inline

◆ GetParamLast()

◆ GetPDG()

Int_t CbmLitTrack::GetPDG ( ) const
inline

Definition at line 61 of file CbmLitTrack.h.

References fPDG.

Referenced by CbmLitTrackFitterImp::Fit().

◆ GetPreviousTrackId()

◆ GetQuality()

◆ GetRefId()

Int_t CbmLitTrack::GetRefId ( ) const
inline

Definition at line 72 of file CbmLitTrack.h.

References fRefId.

◆ RemoveHit()

void CbmLitTrack::RemoveHit ( Int_t  index)
inline

Remove hit and corresponding fit node.

Definition at line 106 of file CbmLitTrack.h.

References fFitNodes, and fHits.

Referenced by CbmLitTrackFitterIter::Fit().

◆ SetChi2()

◆ SetFitNodes()

void CbmLitTrack::SetFitNodes ( const vector< CbmLitFitNode > &  nodes)
inline

Definition at line 86 of file CbmLitTrack.h.

References fFitNodes.

Referenced by CbmLitKalmanSmoother::Fit(), and CbmLitTrackFitterImp::Fit().

◆ SetLastStationId()

void CbmLitTrack::SetLastStationId ( Int_t  lastPlaneId)
inline

◆ SetLength()

void CbmLitTrack::SetLength ( litfloat  length)
inline

Definition at line 91 of file CbmLitTrack.h.

References fLength.

Referenced by CbmLitTrackFitterImp::Fit().

◆ SetNDF()

◆ SetNofHits()

void CbmLitTrack::SetNofHits ( Int_t  nofHits)
inline

Definition at line 84 of file CbmLitTrack.h.

References fHits.

Referenced by CbmLitQualitySort::DoSortNofHits().

◆ SetNofMissingHits()

void CbmLitTrack::SetNofMissingHits ( Int_t  nofMissingHits)
inline

◆ SetParamFirst()

◆ SetParamLast()

◆ SetPDG()

void CbmLitTrack::SetPDG ( Int_t  pdg)
inline

◆ SetPreviousTrackId()

void CbmLitTrack::SetPreviousTrackId ( Int_t  id)
inline

◆ SetQuality()

◆ SetRefId()

void CbmLitTrack::SetRefId ( Int_t  refId)
inline

Definition at line 90 of file CbmLitTrack.h.

References fRefId.

Referenced by CbmLitConverter::StsTrackArrayToTrackVector().

◆ SortHits()

void CbmLitTrack::SortHits ( Bool_t  downstream = true)
inline

Sort hits by Z position.

Parameters
[in]downstreamIf downstream is true than hits are sorted in downstream direction otherwise in upstream direction.

Definition at line 115 of file CbmLitTrack.h.

References fHits.

Referenced by CbmLitTrackFitterImp::Fit().

◆ ToString()

string CbmLitTrack::ToString ( ) const
inline

Return string representation of class.

Returns
String representation of class.

Definition at line 143 of file CbmLitTrack.h.

References fChi2, fFitNodes, fHits, fLastStationId, fNDF, fPDG, fPreviousTrackId, and fQuality.

Referenced by CbmLitConverter::LitTrackVectorToGlobalTrackArray().

Member Data Documentation

◆ fChi2

litfloat CbmLitTrack::fChi2
private

Definition at line 159 of file CbmLitTrack.h.

Referenced by GetChi2(), SetChi2(), and ToString().

◆ fFitNodes

vector<CbmLitFitNode> CbmLitTrack::fFitNodes
private

Definition at line 157 of file CbmLitTrack.h.

Referenced by GetFitNode(), GetFitNodes(), RemoveHit(), SetFitNodes(), and ToString().

◆ fHits

vector<const CbmLitHit*> CbmLitTrack::fHits
private

◆ fLastStationId

Int_t CbmLitTrack::fLastStationId
private

Definition at line 162 of file CbmLitTrack.h.

Referenced by GetLastStationId(), SetLastStationId(), and ToString().

◆ fLength

litfloat CbmLitTrack::fLength
private

Definition at line 166 of file CbmLitTrack.h.

Referenced by GetLength(), and SetLength().

◆ fNDF

Int_t CbmLitTrack::fNDF
private

Definition at line 160 of file CbmLitTrack.h.

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

◆ fNofMissingHits

Int_t CbmLitTrack::fNofMissingHits
private

Definition at line 164 of file CbmLitTrack.h.

Referenced by GetNofMissingHits(), and SetNofMissingHits().

◆ fParamFirst

CbmLitTrackParam CbmLitTrack::fParamFirst
private

Definition at line 155 of file CbmLitTrack.h.

Referenced by CheckParams(), GetParamFirst(), and SetParamFirst().

◆ fParamLast

CbmLitTrackParam CbmLitTrack::fParamLast
private

Definition at line 156 of file CbmLitTrack.h.

Referenced by CheckParams(), GetParamLast(), and SetParamLast().

◆ fPDG

Int_t CbmLitTrack::fPDG
private

Definition at line 163 of file CbmLitTrack.h.

Referenced by GetPDG(), SetPDG(), and ToString().

◆ fPreviousTrackId

Int_t CbmLitTrack::fPreviousTrackId
private

Definition at line 161 of file CbmLitTrack.h.

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

◆ fQuality

LitTrackQa CbmLitTrack::fQuality
private

Definition at line 158 of file CbmLitTrack.h.

Referenced by GetQuality(), SetQuality(), and ToString().

◆ fRefId

Int_t CbmLitTrack::fRefId
private

Definition at line 165 of file CbmLitTrack.h.

Referenced by GetRefId(), and SetRefId().


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