-
Notifications
You must be signed in to change notification settings - Fork 5
/
TStarJetPicoTrackCuts.h
64 lines (47 loc) · 1.97 KB
/
TStarJetPicoTrackCuts.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __TSTARJETPICOTRACKCUTS_HH
#define __TSTARJETPICOTRACKCUTS_HH
#include <TObject.h>
class TStarJetPicoPrimaryTrack;
class TStarJetPicoTrackCuts : public TObject
{
public:
TStarJetPicoTrackCuts();
TStarJetPicoTrackCuts(const TStarJetPicoTrackCuts &t);
virtual ~TStarJetPicoTrackCuts() {;} // nothing to delete
virtual Bool_t IsDCAOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsMinNFitPointsOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsFitOverMaxPointsOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsMaxPtOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsChi2OK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsPCTOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsPhiOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t IsTrackOK(TStarJetPicoPrimaryTrack *tr);
virtual Bool_t CheckTrackQA(TStarJetPicoPrimaryTrack *tr);
virtual Int_t DoPID(TStarJetPicoPrimaryTrack */*tr*/) {return 0;}
void SetDCACut(Double_t val) {fMaxDCA = val;}
void SetMinNFitPointsCut(Int_t val) {fMinNfit = val;}
void SetFitOverMaxPointsCut(Double_t val) {fFitOverMax = val;}
void SetMaxPtCut(Double_t val) {fMaxPt = val;}
void SetMaxChi2Cut(Double_t val) {fFlagMaxChi2=kTRUE; fMaxChi2 = val;}
void SetMaxChi2CutOff() {fFlagMaxChi2=kFALSE;}
void SetPCTCut(Bool_t val) {fPCT = val;}
Double_t GetDCACut() {return fMaxDCA;}
Int_t GetMinNFitPointsCut() {return fMinNfit;}
Double_t GetFitOverMaxPointsCut() {return fFitOverMax;}
Double_t GetMaxPtCut() {return fMaxPt;}
// nick elsey: can reject particles in phi bands
Bool_t RestrictPhiRange(Double_t min, Double_t max);
private:
Double_t fMaxDCA;
Int_t fMinNfit;
Double_t fFitOverMax;
Double_t fMaxPt;
// nick elsey: used by RestrictPhiRange()
Bool_t AddPhiCut(Double_t min, Double_t max);
std::vector<std::vector<double> > restrictedPhiRanges;
Double_t fMaxChi2;
Bool_t fPCT;
Bool_t fFlagMaxChi2;
ClassDef(TStarJetPicoTrackCuts, 2)
};
#endif