CbmRoot
CbmLitTrackSelectionCuts.h
Go to the documentation of this file.
1 /* CbmLitTrackSelectionCuts.h
2  * @author Andrey Lebedev <andrey.lebedev@gsi.de>
3  * @since 2011
4  * @version 1.0
5  *
6  * Removes tracks based on the cuts.
7  */
8 #ifndef CBMLITTRACKSELECTIONCUTS_H_
9 #define CBMLITTRACKSELECTIONCUTS_H_
10 
12 
14 public:
15  /* Constructor */
17 
18  /* Constructor */
20  int minLastPlaneId,
21  int minNofHits,
22  litfloat minMomentum);
23 
24  /* Destructor */
25  virtual ~CbmLitTrackSelectionCuts();
26 
27  /* Derived from CbmLitTrackSelection */
28  virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd);
29 
30  /* Derived from CbmLitTrackSelection */
32 
33  /* Return chi square cut */
34  litfloat GetMaxChiSq() const { return fMaxChiSq; }
35 
36  /* Returns last plane index cut */
37  int GetMinLastPlaneId() const { return fMinLastPlaneId; }
38 
39  /* Returns number of hits cut */
40  int GetMinNofHits() const { return fMinNofHits; }
41 
42  /* Returns momentum cut */
43  litfloat GetMinMomentum() const { return fMinMomentum; }
44 
45  /* Sets chi square cut */
46  void SetMaxChiSq(litfloat maxChiSq) { fMaxChiSq = maxChiSq; }
47 
48  /* Sets last plane index cut */
49  void SetMinLastPlaneId(int minLastPlaneId) {
50  fMinLastPlaneId = minLastPlaneId;
51  }
52 
53  /* Sets number of hits cut */
54  void SetMinNofHits(int minNofHits) { fMinNofHits = minNofHits; }
55 
56  /* Sets momentum cut */
57  void SetMinMomentum(litfloat minMomentum) { fMinMomentum = minMomentum; }
58 
59 private:
60  /* Chi square cut */
62  /* Last plane index cut */
64  /* Number of hits cut */
66  /* Momentum cut in [GeV/c] */
68 };
69 
70 #endif /* CBMLITTRACKSELECTIONCUTS_H_ */
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitTrackSelectionCuts::GetMinMomentum
litfloat GetMinMomentum() const
Definition: CbmLitTrackSelectionCuts.h:43
CbmLitTrackSelectionCuts::SetMaxChiSq
void SetMaxChiSq(litfloat maxChiSq)
Definition: CbmLitTrackSelectionCuts.h:46
CbmLitTrackSelectionCuts::fMinNofHits
int fMinNofHits
Definition: CbmLitTrackSelectionCuts.h:65
CbmLitTrackSelection.h
Interface for track selection algorithm.
CbmLitTrackSelectionCuts::~CbmLitTrackSelectionCuts
virtual ~CbmLitTrackSelectionCuts()
Definition: CbmLitTrackSelectionCuts.cxx:28
CbmLitTrackSelectionCuts::DoSelect
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Main function to be implemented for concrete track selection algorithm.
Definition: CbmLitTrackSelectionCuts.cxx:30
CbmLitTrackSelectionCuts::CbmLitTrackSelectionCuts
CbmLitTrackSelectionCuts()
Definition: CbmLitTrackSelectionCuts.cxx:13
CbmLitTrackSelectionCuts::SetMinNofHits
void SetMinNofHits(int minNofHits)
Definition: CbmLitTrackSelectionCuts.h:54
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
CbmLitTrackSelectionCuts::GetMinLastPlaneId
int GetMinLastPlaneId() const
Definition: CbmLitTrackSelectionCuts.h:37
CbmLitTrackSelectionCuts::GetMaxChiSq
litfloat GetMaxChiSq() const
Definition: CbmLitTrackSelectionCuts.h:34
CbmLitTrackSelectionCuts::GetMinNofHits
int GetMinNofHits() const
Definition: CbmLitTrackSelectionCuts.h:40
CbmLitTrackSelection
Interface for track selection algorithm.
Definition: CbmLitTrackSelection.h:20
CbmLitTrackSelectionCuts::SetMinMomentum
void SetMinMomentum(litfloat minMomentum)
Definition: CbmLitTrackSelectionCuts.h:57
CbmLitTrackSelectionCuts::fMaxChiSq
litfloat fMaxChiSq
Definition: CbmLitTrackSelectionCuts.h:61
CbmLitTrackSelectionCuts::fMinLastPlaneId
int fMinLastPlaneId
Definition: CbmLitTrackSelectionCuts.h:63
CbmLitTrackSelectionCuts
Definition: CbmLitTrackSelectionCuts.h:13
LitStatus
LitStatus
Definition: CbmLitEnums.h:23
CbmLitTrackSelectionCuts::SetMinLastPlaneId
void SetMinLastPlaneId(int minLastPlaneId)
Definition: CbmLitTrackSelectionCuts.h:49
CbmLitTrackSelectionCuts::fMinMomentum
litfloat fMinMomentum
Definition: CbmLitTrackSelectionCuts.h:67