CbmRoot
Loading...
Searching...
No Matches
CbmLitTrackSelectionCuts.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
5/* CbmLitTrackSelectionCuts.h
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 */
19 CbmLitTrackSelectionCuts(litfloat maxChiSq, int minLastPlaneId, int minNofHits, litfloat minMomentum);
20
21 /* Destructor */
23
24 /* Derived from CbmLitTrackSelection */
26
27 /* Derived from CbmLitTrackSelection */
29
30 /* Return chi square cut */
31 litfloat GetMaxChiSq() const { return fMaxChiSq; }
32
33 /* Returns last plane index cut */
34 int GetMinLastPlaneId() const { return fMinLastPlaneId; }
35
36 /* Returns number of hits cut */
37 int GetMinNofHits() const { return fMinNofHits; }
38
39 /* Returns momentum cut */
41
42 /* Sets chi square cut */
43 void SetMaxChiSq(litfloat maxChiSq) { fMaxChiSq = maxChiSq; }
44
45 /* Sets last plane index cut */
46 void SetMinLastPlaneId(int minLastPlaneId) { fMinLastPlaneId = minLastPlaneId; }
47
48 /* Sets number of hits cut */
49 void SetMinNofHits(int minNofHits) { fMinNofHits = minNofHits; }
50
51 /* Sets momentum cut */
52 void SetMinMomentum(litfloat minMomentum) { fMinMomentum = minMomentum; }
53
54 private:
55 /* Chi square cut */
57 /* Last plane index cut */
59 /* Number of hits cut */
61 /* Momentum cut in [GeV/c] */
63};
64
65#endif /* CBMLITTRACKSELECTIONCUTS_H_ */
TClonesArray * tracks
LitStatus
Definition CbmLitEnums.h:29
double litfloat
Definition CbmLitFloat.h:19
Interface for track selection algorithm.
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
Definition CbmTofTypes.h:25
std::vector< CbmTofTrack * > TrackPtrVector
Definition CbmTofTypes.h:26
virtual LitStatus DoSelect(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Main function to be implemented for concrete track selection algorithm.
void SetMaxChiSq(litfloat maxChiSq)
void SetMinMomentum(litfloat minMomentum)
void SetMinLastPlaneId(int minLastPlaneId)
Interface for track selection algorithm.