CbmRoot
CbmLitTrackSelectionTrd.cxx
Go to the documentation of this file.
1 
8 
9 #include "data/CbmLitTrack.h"
11 
12 #include <functional>
13 #include <set>
14 
18 }
19 
21 
23  TrackPtrIterator itEnd) {
24  if (itBegin == itEnd) { return kLITSUCCESS; }
25 
28 
29  for (TrackPtrIterator iTrack = itBegin; iTrack != itEnd; iTrack++) {
30  (*iTrack)->SetQuality(kLITGOOD);
31  }
32 
33  fSharedHitsSelection->DoSelect(itBegin, itEnd);
34 
35  return kLITSUCCESS;
36 }
37 
39  return DoSelect(tracks.begin(), tracks.end());
40 }
kLITGOOD
@ kLITGOOD
Definition: CbmLitEnums.h:32
TrackSelectionPtr
boost::shared_ptr< CbmLitTrackSelection > TrackSelectionPtr
Definition: CbmTofPtrTypes.h:25
CbmLitTrackSelectionSharedHits
Definition: CbmLitTrackSelectionSharedHits.h:19
CbmLitTrackSelectionTrd::SetNofSharedHits
void SetNofSharedHits(Int_t nofHits)
Definition: CbmLitTrackSelectionTrd.h:37
CbmLitTrackSelectionSharedHits.h
kLITSUCCESS
@ kLITSUCCESS
Definition: CbmLitEnums.h:24
CbmLitTrackSelectionTrd::fSharedHitsSelection
TrackSelectionPtr fSharedHitsSelection
Definition: CbmLitTrackSelectionTrd.h:40
TrackPtrIterator
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
Definition: CbmTofTypes.h:21
TrackPtrVector
std::vector< CbmTofTrack * > TrackPtrVector
Definition: CbmTofTypes.h:22
CbmLitTrackSelectionTrd.h
Track selection for TRD.
tracks
TClonesArray * tracks
Definition: Analyze_matching.h:17
CbmLitTrackSelectionTrd::DoSelect
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Inherited from CbmLitTrackSelection.
Definition: CbmLitTrackSelectionTrd.cxx:22
CbmLitTrackSelectionTrd::CbmLitTrackSelectionTrd
CbmLitTrackSelectionTrd()
Constructor.
Definition: CbmLitTrackSelectionTrd.cxx:15
CbmLitTrackSelectionTrd::~CbmLitTrackSelectionTrd
virtual ~CbmLitTrackSelectionTrd()
Destructor.
Definition: CbmLitTrackSelectionTrd.cxx:20
CbmLitTrack.h
Base data class for track.
CbmLitTrackSelectionTrd::fNofSharedHits
Int_t fNofSharedHits
Definition: CbmLitTrackSelectionTrd.h:41
LitStatus
LitStatus
Definition: CbmLitEnums.h:23