1 #ifndef ALIRSNCUTDAUGHTERKSTAR2010PP_H
2 #define ALIRSNCUTDAUGHTERKSTAR2010PP_H
5 // Cuts for selecting good pion candidates for K* analysis
6 // with the data samples from pp runs in 2010.
7 // Applies track quality selection plus PID selection,
8 // with different tolerance ranges depending on the momentum.
11 #include "AliVTrack.h"
12 #include "AliRsnCut.h"
13 #include "AliRsnCutTrackQuality.h"
15 class AliRsnCutDaughterKStar2010PP : public AliRsnCut {
19 AliRsnCutDaughterKStar2010PP(const char *name = "", AliPID::EParticleType pid = AliPID::kPion);
20 virtual ~AliRsnCutDaughterKStar2010PP() { }
22 void SetNoPID(Bool_t yn = kTRUE) {fNoPID = yn;}
24 void SetPID(AliPID::EParticleType type) {fPID = type;}
25 AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;}
26 Bool_t MatchTOF(const AliVTrack *vtrack);
27 virtual Bool_t IsSelected(TObject *obj);
31 Bool_t fNoPID; // flag to switch off PID check
33 AliPID::EParticleType fPID; // PID for track
34 AliRsnCutTrackQuality fCutQuality; // track quality cut
36 ClassDef(AliRsnCutDaughterKStar2010PP,1) // cut definitions for K*
40 //__________________________________________________________________________________________________
41 inline Bool_t AliRsnCutDaughterKStar2010PP::MatchTOF(const AliVTrack *vtrack)
44 // Checks if the track has matched the TOF detector
48 AliWarning("NULL argument: impossible to check status");
52 if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE;
53 if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE;