CbmRoot
CbmLitTrackSelectionMuch.cxx
Go to the documentation of this file.
1 
8 
9 #include "data/CbmLitTrack.h"
11 
15 }
16 
18 
20  TrackPtrIterator itEnd) {
21  if (itBegin == itEnd) { return kLITSUCCESS; }
22 
25 
26  for (TrackPtrIterator iTrack = itBegin; iTrack != itEnd; iTrack++) {
27  (*iTrack)->SetQuality(kLITGOOD);
28  }
29 
30  fSharedHitsSelection->DoSelect(itBegin, itEnd);
31 
32  return kLITSUCCESS;
33 }
34 
36  return DoSelect(tracks.begin(), tracks.end());
37 }
kLITGOOD
@ kLITGOOD
Definition: CbmLitEnums.h:32
TrackSelectionPtr
boost::shared_ptr< CbmLitTrackSelection > TrackSelectionPtr
Definition: CbmTofPtrTypes.h:25
CbmLitTrackSelectionMuch::DoSelect
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Inherited from CbmLitTrackSelection.
Definition: CbmLitTrackSelectionMuch.cxx:19
CbmLitTrackSelectionMuch::CbmLitTrackSelectionMuch
CbmLitTrackSelectionMuch()
Constructor.
Definition: CbmLitTrackSelectionMuch.cxx:12
CbmLitTrackSelectionSharedHits
Definition: CbmLitTrackSelectionSharedHits.h:19
CbmLitTrackSelectionSharedHits.h
CbmLitTrackSelectionMuch::fNofSharedHits
Int_t fNofSharedHits
Definition: CbmLitTrackSelectionMuch.h:41
kLITSUCCESS
@ kLITSUCCESS
Definition: CbmLitEnums.h:24
CbmLitTrackSelectionMuch::~CbmLitTrackSelectionMuch
virtual ~CbmLitTrackSelectionMuch()
Destructor.
Definition: CbmLitTrackSelectionMuch.cxx:17
CbmLitTrackSelectionMuch.h
Track selection for MUCH.
CbmLitTrackSelectionMuch::fSharedHitsSelection
TrackSelectionPtr fSharedHitsSelection
Definition: CbmLitTrackSelectionMuch.h:40
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
CbmLitTrackSelectionMuch::SetNofSharedHits
void SetNofSharedHits(Int_t nofHits)
Definition: CbmLitTrackSelectionMuch.h:37
CbmLitTrack.h
Base data class for track.
LitStatus
LitStatus
Definition: CbmLitEnums.h:23