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