CbmRoot
CbmLitTrackSelectionMuch.cxx
Go to the documentation of this file.
1
7
#include "
selection/CbmLitTrackSelectionMuch.h
"
8
9
#include "
data/CbmLitTrack.h
"
10
#include "
selection/CbmLitTrackSelectionSharedHits.h
"
11
12
CbmLitTrackSelectionMuch::CbmLitTrackSelectionMuch
() : fNofSharedHits(0) {
13
fSharedHitsSelection
=
14
TrackSelectionPtr
(
new
CbmLitTrackSelectionSharedHits
());
15
}
16
17
CbmLitTrackSelectionMuch::~CbmLitTrackSelectionMuch
() {}
18
19
LitStatus
CbmLitTrackSelectionMuch::DoSelect
(
TrackPtrIterator
itBegin,
20
TrackPtrIterator
itEnd) {
21
if
(itBegin == itEnd) {
return
kLITSUCCESS
; }
22
23
((
CbmLitTrackSelectionSharedHits
*)
fSharedHitsSelection
.get())
24
->
SetNofSharedHits
(
fNofSharedHits
);
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
35
LitStatus
CbmLitTrackSelectionMuch::DoSelect
(
TrackPtrVector
&
tracks
) {
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
reco
littrack
std
selection
CbmLitTrackSelectionMuch.cxx
Generated on Wed Oct 28 2020 15:11:40 for CbmRoot by
1.8.18