/*************************************************************************** * * $Id$ * * *************************************************************************** * * * * *************************************************************************** * * $Log$ * Revision 1.1.1.1 2007/04/25 15:38:41 panos * Importing the HBT code dir * * Revision 1.4 2007-04-03 16:00:08 mchojnacki * Changes to iprove memory managing * * Revision 1.3 2007/03/13 15:30:03 mchojnacki * adding reader for simulated data * * Revision 1.2 2007/03/08 14:58:03 mchojnacki * adding some alice stuff * * Revision 1.1.1.1 2007/03/07 10:14:49 mchojnacki * First version on CVS * **************************************************************************/ #include "AliFemtoESDTrackCut.h" #include #ifdef __ROOT__ ClassImp(AliFemtoESDTrackCut) #endif AliFemtoESDTrackCut::AliFemtoESDTrackCut() { fNTracksPassed = fNTracksFailed = 0; fCharge = 0; // takes both charges 0 fPt[0]=0.0; fPt[1] = 100.0;//100 fRapidity[0]=-2; fRapidity[1]=2;//-2 2 fPidProbElectron[0]=-1;fPidProbElectron[1]=2; fPidProbPion[0]=-1; fPidProbPion[1]=2; fPidProbKaon[0]=-1;fPidProbKaon[1]=2; fPidProbProton[0]=-1;fPidProbProton[1]=2; fPidProbMuon[0]=-1;fPidProbMuon[1]=2; fLabel=false; fStatus=0; fminTPCclsF=0; fminITScls=0; } //------------------------------ //AliFemtoESDTrackCut::~AliFemtoESDTrackCut(){ // /* noop */ //} //------------------------------ bool AliFemtoESDTrackCut::Pass(const AliFemtoTrack* track) { //cout<<"AliFemtoESD cut"<Label()<<" "<Flags()<<" "<TPCnclsF()<<" "<ITSncls()<Flags()&fStatus)!=fStatus) { // cout<Flags()<<" "<track->TPCnclsF()) { //cout<<" No go because TPC Number of ClsF"<TPCnclsF()<track->ITSncls()) { //cout<<" No go because ITS Number of Cls"<ITSncls()<Label()<0) { fNTracksFailed++; // cout<<"No Go Through the cut"<fPt[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<PidProbElectron()PidProbElectron()>fPidProbElectron[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<PidProbPion()PidProbPion()>fPidProbPion[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<PidProbKaon()PidProbKaon()>fPidProbKaon[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<PidProbProton()PidProbProton()>fPidProbProton[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<PidProbMuon()PidProbMuon()>fPidProbMuon[1])) { fNTracksFailed++; //cout<<"No Go Through the cut"<Mass()); Stemp=Ctemp; sprintf(Ctemp,"Particle charge:\t%d\n",fCharge); Stemp+=Ctemp; sprintf(Ctemp,"Particle pT:\t%E - %E\n",fPt[0],fPt[1]); Stemp+=Ctemp; sprintf(Ctemp,"Particle rapidity:\t%E - %E\n",fRapidity[0],fRapidity[1]); Stemp+=Ctemp; sprintf(Ctemp,"Number of tracks which passed:\t%ld Number which failed:\t%ld\n",fNTracksPassed,fNTracksFailed); Stemp += Ctemp; AliFemtoString returnThis = Stemp; return returnThis; }