]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoESDTrackCut.h
More coding rule conformance
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemtoUser / AliFemtoESDTrackCut.h
CommitLineData
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
20class AliFemtoESDTrackCut : public AliFemtoTrackCut
21{
22
d92ed900 23 public:
24 AliFemtoESDTrackCut();
25 //~AliFemtoESDTrackCut();
67427ff7 26
d92ed900 27 virtual bool Pass(const AliFemtoTrack* aTrack);
67427ff7 28
d92ed900 29 virtual AliFemtoString Report();
67427ff7 30
d92ed900 31 void SetPt(const float& lo, const float& hi);
32 void SetRapidity(const float& lo, const float& hi);
33 void SetCharge(const int&);
34 void SetPidProbElectron(const float& lo, const float& hi);
35 void SetPidProbPion(const float& lo, const float& hi);
36 void SetPidProbKaon(const float& lo, const float& hi);
37 void SetPidProbProton(const float& lo, const float& hi);
38 void SetPidProbMuon(const float& lo, const float& hi);
39 void SetLabel(const bool& flag);
40 void SetStatus(const long& w);
41 void SetminTPCclsF(const short& s);
42 void SetminITScls(const int& s);
67427ff7 43
d92ed900 44 private: // here are the quantities I want to cut on...
67427ff7 45
d92ed900 46 int fCharge; // particle charge
47 float fPt[2]; // bounds for transverse momentum
48 float fRapidity[2]; // bounds for rapidity
49 float fPidProbElectron[2]; // bounds for electron probability
50 float fPidProbPion[2]; // bounds for pion probability
51 float fPidProbKaon[2]; // bounds for kaon probability
52 float fPidProbProton[2]; // bounds for proton probability
53 float fPidProbMuon[2]; // bounds for muon probability
54 bool fLabel; // if true label<0 will not pass throught
55 long fStatus; // staus flag
56 short fminTPCclsF; // min number of findable clusters in the TPC
57 int fminITScls; // min number of clusters assigned in the ITS
58 long fNTracksPassed; // passed tracks count
59 long fNTracksFailed; // failed tracks count
67427ff7 60
61#ifdef __ROOT__
62 ClassDef(AliFemtoESDTrackCut, 1)
63#endif
d92ed900 64 };
67427ff7 65
66
67inline void AliFemtoESDTrackCut::SetPt(const float& lo, const float& hi){fPt[0]=lo; fPt[1]=hi;}
68inline void AliFemtoESDTrackCut::SetRapidity(const float& lo,const float& hi){fRapidity[0]=lo; fRapidity[1]=hi;}
69inline void AliFemtoESDTrackCut::SetCharge(const int& ch){fCharge = ch;}
70inline void AliFemtoESDTrackCut::SetPidProbElectron(const float& lo,const float& hi){fPidProbElectron[0]=lo; fPidProbElectron[1]=hi;}
71inline void AliFemtoESDTrackCut::SetPidProbPion(const float& lo,const float& hi){fPidProbPion[0]=lo; fPidProbPion[1]=hi;}
72inline void AliFemtoESDTrackCut::SetPidProbKaon(const float& lo,const float& hi){fPidProbKaon[0]=lo; fPidProbKaon[1]=hi;}
73inline void AliFemtoESDTrackCut::SetPidProbProton(const float& lo,const float& hi){fPidProbProton[0]=lo; fPidProbProton[1]=hi;}
74inline void AliFemtoESDTrackCut::SetPidProbMuon(const float& lo,const float& hi){fPidProbMuon[0]=lo; fPidProbMuon[1]=hi;}
75inline void AliFemtoESDTrackCut::SetLabel(const bool& flag){fLabel=flag;}
76inline void AliFemtoESDTrackCut::SetStatus(const long& status){fStatus=status;}
77inline void AliFemtoESDTrackCut::SetminTPCclsF(const short& minTPCclsF){fminTPCclsF=minTPCclsF;}
78inline void AliFemtoESDTrackCut::SetminITScls(const int& minITScls){fminITScls=minITScls;}
79
80#endif
81