]>
Commit | Line | Data |
---|---|---|
d92ed900 | 1 | /////////////////////////////////////////////////////////////////////////// |
2 | // // | |
3 | // AliFemtoESDTrackCut: A basic track cut that used information from // | |
4 | // ALICE ESD to accept or reject the track. // | |
5 | // Enables the selection on charge, transverse momentum, rapidity, // | |
6 | // pid probabilities, number of ITS and TPC clusters // | |
7 | // Author: Marek Chojnacki (WUT), mchojnacki@knf.pw.edu.pl // | |
8 | // // | |
9 | /////////////////////////////////////////////////////////////////////////// | |
67427ff7 | 10 | |
d92ed900 | 11 | #ifndef ALIFEMTOESDTRACKCUT_H |
12 | #define ALIFEMTOESDTRACKCUT_H | |
67427ff7 | 13 | |
14 | //#ifndef StMaker_H | |
15 | //#include "StMaker.h" | |
16 | //#endif | |
17 | ||
65423af9 | 18 | #include "AliFemtoTrackCut.h" |
67427ff7 | 19 | |
20 | class AliFemtoESDTrackCut : public AliFemtoTrackCut | |
21 | { | |
22 | ||
d92ed900 | 23 | public: |
24 | AliFemtoESDTrackCut(); | |
cc5faabc | 25 | virtual ~AliFemtoESDTrackCut(); |
67427ff7 | 26 | |
d92ed900 | 27 | virtual bool Pass(const AliFemtoTrack* aTrack); |
67427ff7 | 28 | |
d92ed900 | 29 | virtual AliFemtoString Report(); |
3a74204a | 30 | virtual TList *ListSettings(); |
0b3bd1ac | 31 | virtual AliFemtoParticleType Type(){return hbtTrack;} |
67427ff7 | 32 | |
d92ed900 | 33 | void SetPt(const float& lo, const float& hi); |
34 | void SetRapidity(const float& lo, const float& hi); | |
cc5faabc | 35 | void SetCharge(const int& ch); |
d92ed900 | 36 | void SetPidProbElectron(const float& lo, const float& hi); |
37 | void SetPidProbPion(const float& lo, const float& hi); | |
38 | void SetPidProbKaon(const float& lo, const float& hi); | |
39 | void SetPidProbProton(const float& lo, const float& hi); | |
40 | void SetPidProbMuon(const float& lo, const float& hi); | |
41 | void SetLabel(const bool& flag); | |
42 | void SetStatus(const long& w); | |
43 | void SetminTPCclsF(const short& s); | |
0b3bd1ac | 44 | void SetminTPCncls(const short& s); |
d92ed900 | 45 | void SetminITScls(const int& s); |
cc5faabc | 46 | void SetRemoveKinks(const bool& flag); |
0b3bd1ac | 47 | void SetMaxITSChiNdof(const float& maxchi); |
48 | void SetMaxTPCChiNdof(const float& maxchi); | |
49 | void SetMaxSigmaToVertex(const float& maxsig); | |
ab74d4d3 | 50 | void SetMaxImpactXY(const float& maximpxy); |
51 | void SetMaxImpactZ(const float& maximpz); | |
cc5faabc | 52 | void SetMostProbablePion(); |
53 | void SetMostProbableKaon(); | |
54 | void SetMostProbableProton(); | |
55 | void SetNoMostProbable(); | |
56 | ||
d92ed900 | 57 | private: // here are the quantities I want to cut on... |
67427ff7 | 58 | |
d92ed900 | 59 | int fCharge; // particle charge |
60 | float fPt[2]; // bounds for transverse momentum | |
61 | float fRapidity[2]; // bounds for rapidity | |
62 | float fPidProbElectron[2]; // bounds for electron probability | |
63 | float fPidProbPion[2]; // bounds for pion probability | |
64 | float fPidProbKaon[2]; // bounds for kaon probability | |
65 | float fPidProbProton[2]; // bounds for proton probability | |
66 | float fPidProbMuon[2]; // bounds for muon probability | |
67 | bool fLabel; // if true label<0 will not pass throught | |
68 | long fStatus; // staus flag | |
db2d5b4b | 69 | |
d92ed900 | 70 | short fminTPCclsF; // min number of findable clusters in the TPC |
0b3bd1ac | 71 | short fminTPCncls; // min number of clusters in the TPC |
d92ed900 | 72 | int fminITScls; // min number of clusters assigned in the ITS |
0b3bd1ac | 73 | float fMaxITSchiNdof; // maximum allowed chi2/ndof for ITS clusters |
74 | float fMaxTPCchiNdof; // maximum allowed chi2/ndof for TPC clusters | |
75 | float fMaxSigmaToVertex; // maximum allowed sigma to primary vertex | |
d92ed900 | 76 | long fNTracksPassed; // passed tracks count |
77 | long fNTracksFailed; // failed tracks count | |
cc5faabc | 78 | bool fRemoveKinks; // if true particles with any kink label will not pass |
79 | int fMostProbable; // this particle type is required to be most probable | |
80 | ||
ab74d4d3 | 81 | float fMaxImpactXY; // Max XY impact parameter |
82 | float fMaxImpactZ; // Max Z impact parameter | |
83 | ||
cc5faabc | 84 | float PidFractionElectron(float mom) const; |
85 | float PidFractionPion(float mom) const; | |
86 | float PidFractionKaon(float mom) const; | |
87 | float PidFractionProton(float mom) const; | |
67427ff7 | 88 | |
89 | #ifdef __ROOT__ | |
90 | ClassDef(AliFemtoESDTrackCut, 1) | |
91 | #endif | |
d92ed900 | 92 | }; |
67427ff7 | 93 | |
94 | ||
95 | inline void AliFemtoESDTrackCut::SetPt(const float& lo, const float& hi){fPt[0]=lo; fPt[1]=hi;} | |
96 | inline void AliFemtoESDTrackCut::SetRapidity(const float& lo,const float& hi){fRapidity[0]=lo; fRapidity[1]=hi;} | |
97 | inline void AliFemtoESDTrackCut::SetCharge(const int& ch){fCharge = ch;} | |
98 | inline void AliFemtoESDTrackCut::SetPidProbElectron(const float& lo,const float& hi){fPidProbElectron[0]=lo; fPidProbElectron[1]=hi;} | |
99 | inline void AliFemtoESDTrackCut::SetPidProbPion(const float& lo,const float& hi){fPidProbPion[0]=lo; fPidProbPion[1]=hi;} | |
100 | inline void AliFemtoESDTrackCut::SetPidProbKaon(const float& lo,const float& hi){fPidProbKaon[0]=lo; fPidProbKaon[1]=hi;} | |
101 | inline void AliFemtoESDTrackCut::SetPidProbProton(const float& lo,const float& hi){fPidProbProton[0]=lo; fPidProbProton[1]=hi;} | |
102 | inline void AliFemtoESDTrackCut::SetPidProbMuon(const float& lo,const float& hi){fPidProbMuon[0]=lo; fPidProbMuon[1]=hi;} | |
103 | inline void AliFemtoESDTrackCut::SetLabel(const bool& flag){fLabel=flag;} | |
104 | inline void AliFemtoESDTrackCut::SetStatus(const long& status){fStatus=status;} | |
105 | inline void AliFemtoESDTrackCut::SetminTPCclsF(const short& minTPCclsF){fminTPCclsF=minTPCclsF;} | |
0b3bd1ac | 106 | inline void AliFemtoESDTrackCut::SetminTPCncls(const short& s){fminTPCncls=s;} |
67427ff7 | 107 | inline void AliFemtoESDTrackCut::SetminITScls(const int& minITScls){fminITScls=minITScls;} |
cc5faabc | 108 | inline void AliFemtoESDTrackCut::SetMostProbablePion() { fMostProbable = 2; } |
109 | inline void AliFemtoESDTrackCut::SetMostProbableKaon() { fMostProbable = 3; } | |
110 | inline void AliFemtoESDTrackCut::SetMostProbableProton() { fMostProbable = 4; } | |
111 | inline void AliFemtoESDTrackCut::SetNoMostProbable() { fMostProbable = 0; } | |
0b3bd1ac | 112 | inline void AliFemtoESDTrackCut::SetMaxITSChiNdof(const float& maxchi) { fMaxITSchiNdof = maxchi; } |
113 | inline void AliFemtoESDTrackCut::SetMaxTPCChiNdof(const float& maxchi) { fMaxTPCchiNdof = maxchi; } | |
114 | inline void AliFemtoESDTrackCut::SetMaxSigmaToVertex(const float& maxsig) { fMaxSigmaToVertex = maxsig; } | |
ab74d4d3 | 115 | inline void AliFemtoESDTrackCut::SetMaxImpactXY(const float& maximpxy) { fMaxImpactXY = maximpxy; } |
116 | inline void AliFemtoESDTrackCut::SetMaxImpactZ(const float& maximpz) { fMaxImpactZ = maximpz; } | |
67427ff7 | 117 | |
118 | #endif | |
119 |