1 ///////////////////////////////////////////////////////////////////////////
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 //
9 ///////////////////////////////////////////////////////////////////////////
11 #ifndef ALIFEMTOESDTRACKCUT_H
12 #define ALIFEMTOESDTRACKCUT_H
15 //#include "StMaker.h"
18 #include "AliFemtoTrackCut.h"
20 class AliFemtoESDTrackCut : public AliFemtoTrackCut
24 AliFemtoESDTrackCut();
25 virtual ~AliFemtoESDTrackCut();
27 virtual bool Pass(const AliFemtoTrack* aTrack);
29 virtual AliFemtoString Report();
30 virtual TList *ListSettings();
31 virtual AliFemtoParticleType Type(){return hbtTrack;}
33 void SetPt(const float& lo, const float& hi);
34 void SetRapidity(const float& lo, const float& hi);
35 void SetCharge(const int& ch);
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);
44 void SetminTPCncls(const short& s);
45 void SetminITScls(const int& s);
46 void SetRemoveKinks(const bool& flag);
47 void SetMaxITSChiNdof(const float& maxchi);
48 void SetMaxTPCChiNdof(const float& maxchi);
49 void SetMaxSigmaToVertex(const float& maxsig);
50 void SetMaxImpactXY(const float& maximpxy);
51 void SetMaxImpactZ(const float& maximpz);
52 void SetMostProbablePion();
53 void SetMostProbableKaon();
54 void SetMostProbableProton();
55 void SetNoMostProbable();
57 private: // here are the quantities I want to cut on...
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
70 short fminTPCclsF; // min number of findable clusters in the TPC
71 short fminTPCncls; // min number of clusters in the TPC
72 int fminITScls; // min number of clusters assigned in the ITS
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
76 long fNTracksPassed; // passed tracks count
77 long fNTracksFailed; // failed tracks count
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
81 float fMaxImpactXY; // Max XY impact parameter
82 float fMaxImpactZ; // Max Z impact parameter
84 float PidFractionElectron(float mom) const;
85 float PidFractionPion(float mom) const;
86 float PidFractionKaon(float mom) const;
87 float PidFractionProton(float mom) const;
90 ClassDef(AliFemtoESDTrackCut, 1)
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;}
106 inline void AliFemtoESDTrackCut::SetminTPCncls(const short& s){fminTPCncls=s;}
107 inline void AliFemtoESDTrackCut::SetminITScls(const int& minITScls){fminITScls=minITScls;}
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; }
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; }
115 inline void AliFemtoESDTrackCut::SetMaxImpactXY(const float& maximpxy) { fMaxImpactXY = maximpxy; }
116 inline void AliFemtoESDTrackCut::SetMaxImpactZ(const float& maximpz) { fMaxImpactZ = maximpz; }