CbmRoot
CbmLitTrackSelectionSharedHits.h
Go to the documentation of this file.
1 /* CbmLitTrackSelectionSharedHits.h
2  * @author Andrey Lebedev <andrey.lebedev@gsi.de>
3  * @since 2008
4  * @version 1.0
5  *
6  * Track selection removes clones and ghosts
7  * sorting by quality and checking shared hits.
8  */
9 
10 #ifndef CBMLITTRACKSELECTIONSHAREDHITS_H_
11 #define CBMLITTRACKSELECTIONSHAREDHITS_H_
12 
13 #include "base/CbmLitTypes.h"
16 
18  public CbmLitTrackSelection,
19  public CbmLitQualitySort {
20 public:
21  /* Constructor */
23 
24  /* Destructor */
26 
27  /* Derived from CbmLitTrackSelection */
28  virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd);
29 
30  /* Derived from CbmLitTrackSelection */
32 
33  /* Returns number of shared hits */
34  int GetNofSharedHits() const { return fNofSharedHits; }
35 
36  /* Sets number of shared hits */
37  void SetNofSharedHits(int nofHits) { fNofSharedHits = nofHits; }
38 
39 private:
40  /* Number of shared hits */
42 
43  /* Checks shared hits in the track array sorted by quality */
45 };
46 
47 #endif /*CBMLITTRACKSELECTIONSHAREDHITS_H_*/
CbmLitTrackSelectionSharedHits::GetNofSharedHits
int GetNofSharedHits() const
Definition: CbmLitTrackSelectionSharedHits.h:34
CbmLitTrackSelectionSharedHits
Definition: CbmLitTrackSelectionSharedHits.h:19
CbmLitTrackSelectionSharedHits::CbmLitTrackSelectionSharedHits
CbmLitTrackSelectionSharedHits()
Definition: CbmLitTrackSelectionSharedHits.cxx:15
CbmLitTrackSelectionSharedHits::CheckSharedHits
void CheckSharedHits(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Definition: CbmLitTrackSelectionSharedHits.cxx:34
CbmLitQualitySort
Definition: CbmLitQualitySort.h:14
CbmLitTrackSelectionSharedHits::SetNofSharedHits
void SetNofSharedHits(int nofHits)
Definition: CbmLitTrackSelectionSharedHits.h:37
CbmLitTrackSelection.h
Interface for track selection algorithm.
CbmLitQualitySort.h
TrackPtrIterator
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
Definition: CbmTofTypes.h:21
TrackPtrVector
std::vector< CbmTofTrack * > TrackPtrVector
Definition: CbmTofTypes.h:22
tracks
TClonesArray * tracks
Definition: Analyze_matching.h:17
CbmLitTrackSelectionSharedHits::~CbmLitTrackSelectionSharedHits
virtual ~CbmLitTrackSelectionSharedHits()
Definition: CbmLitTrackSelectionSharedHits.cxx:18
CbmLitTrackSelectionSharedHits::fNofSharedHits
int fNofSharedHits
Definition: CbmLitTrackSelectionSharedHits.h:41
CbmLitTrackSelection
Interface for track selection algorithm.
Definition: CbmLitTrackSelection.h:20
CbmLitTrackSelectionSharedHits::DoSelect
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Main function to be implemented for concrete track selection algorithm.
Definition: CbmLitTrackSelectionSharedHits.cxx:20
CbmLitTypes.h
Typedefs for data structures used in littrack.
LitStatus
LitStatus
Definition: CbmLitEnums.h:23