1 #ifndef ALIRSNCUTDAUGHTERLSTAR2010_H
2 #define ALIRSNCUTDAUGHTERLSTAR2010_H
5 // Cuts for selecting good proton and kaon candidates for Lambda(1520) analysis
6 // with the data samples from PbPb 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 AliRsnCutDaughterLStar2010 : public AliRsnCut {
19 AliRsnCutDaughterLStar2010(const char *name = "", AliPID::EParticleType pid = AliPID::kKaon);
20 virtual ~AliRsnCutDaughterLStar2010() { }
22 void SetPID(AliPID::EParticleType type) {fPID = type;}
23 AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;}
24 Bool_t MatchTOF(const AliVTrack *vtrack);
25 virtual Bool_t IsSelected(TObject *obj);
29 AliPID::EParticleType fPID; // PID for track
30 AliRsnCutTrackQuality fCutQuality; // track quality cut
32 ClassDef(AliRsnCutDaughterLStar2010,1) // cut definitions for L*
36 //__________________________________________________________________________________________________
37 inline Bool_t AliRsnCutDaughterLStar2010::MatchTOF(const AliVTrack *vtrack)
40 // Checks if the track has matched the TOF detector
44 AliWarning("NULL argument: impossible to check status");
48 if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE;
49 if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE;