CbmRoot
Loading...
Searching...
No Matches
CbmLitTrackSelectionTrd.cxx
Go to the documentation of this file.
1/* Copyright (C) 2008-2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
12
13#include "data/CbmLitTrack.h"
15
16#include <functional>
17#include <set>
18
23
25
27{
28 if (itBegin == itEnd) {
29 return kLITSUCCESS;
30 }
31
33
34 for (TrackPtrIterator iTrack = itBegin; iTrack != itEnd; iTrack++) {
35 (*iTrack)->SetQuality(kLITGOOD);
36 }
37
38 fSharedHitsSelection->DoSelect(itBegin, itEnd);
39
40 return kLITSUCCESS;
41}
42
TClonesArray * tracks
@ kLITGOOD
Definition CbmLitEnums.h:39
LitStatus
Definition CbmLitEnums.h:29
@ kLITSUCCESS
Definition CbmLitEnums.h:30
Track selection for TRD.
Base data class for track.
boost::shared_ptr< CbmLitTrackSelection > TrackSelectionPtr
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
Definition CbmTofTypes.h:25
std::vector< CbmTofTrack * > TrackPtrVector
Definition CbmTofTypes.h:26
TrackSelectionPtr fSharedHitsSelection
virtual ~CbmLitTrackSelectionTrd()
Destructor.
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Inherited from CbmLitTrackSelection.