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

#include <CbmLitTrackSelectionSharedHits.h>

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

Public Member Functions

 CbmLitTrackSelectionSharedHits ()
 
virtual ~CbmLitTrackSelectionSharedHits ()
 
virtual LitStatus DoSelect (TrackPtrIterator itBegin, TrackPtrIterator itEnd)
 Main function to be implemented for concrete track selection algorithm.
 
virtual LitStatus DoSelect (TrackPtrVector &tracks)
 Main function to be implemented for concrete track selection algorithm.
 
int GetNofSharedHits () const
 
void SetNofSharedHits (int nofHits)
 

Static Public Member Functions

static LitStatus DoSortNofHits (TrackPtrIterator itBegin, TrackPtrIterator itEnd)
 Sort array of tracks by quality.
 
static LitStatus DoSortLastStation (TrackPtrIterator itBegin, TrackPtrIterator itEnd)
 Sort array of tracks by quality using last station id and chi square.
 
static LitStatus DoSortChiSqOverNDF (TrackPtrIterator itBegin, TrackPtrIterator itEnd)
 Sort array of tracks by quality using (chi square / NDF).
 

Private Member Functions

void CheckSharedHits (TrackPtrIterator itBegin, TrackPtrIterator itEnd)
 

Private Attributes

int fNofSharedHits
 

Detailed Description

Definition at line 17 of file CbmLitTrackSelectionSharedHits.h.

Constructor & Destructor Documentation

◆ CbmLitTrackSelectionSharedHits()

CbmLitTrackSelectionSharedHits::CbmLitTrackSelectionSharedHits ( )

Definition at line 13 of file CbmLitTrackSelectionSharedHits.cxx.

◆ ~CbmLitTrackSelectionSharedHits()

CbmLitTrackSelectionSharedHits::~CbmLitTrackSelectionSharedHits ( )
virtual

Definition at line 15 of file CbmLitTrackSelectionSharedHits.cxx.

Member Function Documentation

◆ CheckSharedHits()

◆ DoSelect() [1/2]

LitStatus CbmLitTrackSelectionSharedHits::DoSelect ( TrackPtrIterator itBegin,
TrackPtrIterator itEnd )
virtual

Main function to be implemented for concrete track selection algorithm.

Parameters
[in]itBeginIterator to first track.
[in]itEndIterator to last track.
Returns
Status code.

Implements CbmLitTrackSelection.

Definition at line 17 of file CbmLitTrackSelectionSharedHits.cxx.

References CheckSharedHits(), CbmLitQualitySort::DoSortNofHits(), and kLITSUCCESS.

Referenced by DoSelect().

◆ DoSelect() [2/2]

LitStatus CbmLitTrackSelectionSharedHits::DoSelect ( TrackPtrVector & tracks)
virtual

Main function to be implemented for concrete track selection algorithm.

Parameters
tracksInput track array.
Returns
Status code.

Implements CbmLitTrackSelection.

Definition at line 29 of file CbmLitTrackSelectionSharedHits.cxx.

References DoSelect(), and tracks.

◆ DoSortChiSqOverNDF()

LitStatus CbmLitQualitySort::DoSortChiSqOverNDF ( TrackPtrIterator itBegin,
TrackPtrIterator itEnd )
staticinherited

Sort array of tracks by quality using (chi square / NDF).

Definition at line 91 of file CbmLitQualitySort.cxx.

References CbmLitTrack::GetChi2(), CbmLitTrack::GetNDF(), and kLITSUCCESS.

Referenced by CbmLitTrackFinderBranch::FollowTracks().

◆ DoSortLastStation()

LitStatus CbmLitQualitySort::DoSortLastStation ( TrackPtrIterator itBegin,
TrackPtrIterator itEnd )
staticinherited

Sort array of tracks by quality using last station id and chi square.

Definition at line 62 of file CbmLitQualitySort.cxx.

References CbmLitTrack::GetLastStationId(), kLITSUCCESS, and CbmLitTrack::SetLastStationId().

◆ DoSortNofHits()

LitStatus CbmLitQualitySort::DoSortNofHits ( TrackPtrIterator itBegin,
TrackPtrIterator itEnd )
staticinherited

Sort array of tracks by quality.

Parameters
[in]itBeginIterator to first track in array. \paran[in] itEnd Iterator to last track in array.

Sort array of tracks by quality.

Parameters
[in,out]tracksArray of tracks.

Sort array of tracks by quality using number of hits and chi square.

Definition at line 33 of file CbmLitQualitySort.cxx.

References CbmLitTrack::GetNofHits(), kLITSUCCESS, and CbmLitTrack::SetNofHits().

Referenced by DoSelect().

◆ GetNofSharedHits()

int CbmLitTrackSelectionSharedHits::GetNofSharedHits ( ) const
inline

Definition at line 32 of file CbmLitTrackSelectionSharedHits.h.

References fNofSharedHits.

◆ SetNofSharedHits()

void CbmLitTrackSelectionSharedHits::SetNofSharedHits ( int nofHits)
inline

Definition at line 35 of file CbmLitTrackSelectionSharedHits.h.

References fNofSharedHits.

Member Data Documentation

◆ fNofSharedHits

int CbmLitTrackSelectionSharedHits::fNofSharedHits
private

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