1 #ifndef ALIRSNCUTDAUGHTERSIGMASTAR2010PP_H
2 #define ALIRSNCUTDAUGHTERSIGMASTAR2010PP_H
5 // Cuts for selecting good pion candidates for Sigma* 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 AliRsnCutDaughterSigmaStar2010PP : public AliRsnCut {
19 AliRsnCutDaughterSigmaStar2010PP(const char *name = "", AliPID::EParticleType pid = AliPID::kPion);
20 virtual ~AliRsnCutDaughterSigmaStar2010PP() { }
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);
27 void SetPIDCut(Double_t value) {fPIDCut = value;}
31 AliPID::EParticleType fPID; // PID for track
32 AliRsnCutTrackQuality fCutQuality; // track quality cut
34 ClassDef(AliRsnCutDaughterSigmaStar2010PP,2) // cut definitions for Sigma*
38 Double_t fPIDCut; // nsigmas for pions
42 //__________________________________________________________________________________________________
43 inline Bool_t AliRsnCutDaughterSigmaStar2010PP::MatchTOF(const AliVTrack *vtrack)
46 // Checks if the track has matched the TOF detector
50 AliWarning("NULL argument: impossible to check status");
54 if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE;
55 if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE;