1 #ifndef ALIRSNCUTKAONFORPHI2010PP_H
2 #define ALIRSNCUTKAONFORPHI2010PP_H
5 // This cut implements all the checks done to accept a track as a Kaon
6 // for the pp analysis using 2010 runs.
7 // It is based on standard cuts on track quality and nsigma cuts
8 // with respect to the TPC and TOF signals for the PID.
11 #include "AliVTrack.h"
12 #include "AliRsnCut.h"
13 #include "AliRsnCutTrackQuality.h"
15 class AliRsnCutKaonForPhi2010PP : public AliRsnCut {
19 AliRsnCutKaonForPhi2010PP(const char *name = "");
20 AliRsnCutKaonForPhi2010PP(const AliRsnCutKaonForPhi2010PP ©);
21 AliRsnCutKaonForPhi2010PP &operator=(const AliRsnCutKaonForPhi2010PP ©);
22 virtual ~AliRsnCutKaonForPhi2010PP() { }
24 void SetTPCNSigmaLow (Double_t v) {fNSigmaTPCLow = v;}
25 void SetTPCNSigmaHigh(Double_t v) {fNSigmaTPCHigh = v;}
26 void SetTPCLimit(Double_t v) {fLimitTPC = v;}
27 void SetTOFNSigma(Double_t v) {fNSigmaTOF = v;}
29 virtual Bool_t IsSelected(TObject *obj);
30 void InitMyPID(Bool_t isMC, Bool_t isESD);
32 AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;}
33 AliPIDResponse *MyPID() {return fMyPID;}
37 Bool_t MatchTOF(const AliVTrack *vtrack);
39 Double_t fNSigmaTPCLow; // TPC: nsigma cut below limit
40 Double_t fNSigmaTPCHigh; // TPC: nsigma cut above limit
41 Double_t fLimitTPC; // TPC: momentum limit
42 Double_t fNSigmaTOF; // TOF: nsigma cut (unique)
44 AliPIDResponse *fMyPID; // PID response object to be configured manyally
45 AliRsnCutTrackQuality fCutQuality; // track quality cut
47 ClassDef(AliRsnCutKaonForPhi2010PP,1)
51 //__________________________________________________________________________________________________
52 inline Bool_t AliRsnCutKaonForPhi2010PP::MatchTOF(const AliVTrack *vtrack)
55 // Checks if the track has matched the TOF detector
59 AliWarning("NULL argument: impossible to check status");
63 Bool_t isTOFout = ((vtrack->GetStatus() & AliESDtrack::kTOFout) != 0);
64 Bool_t isTIME = ((vtrack->GetStatus() & AliESDtrack::kTIME) != 0);
66 return (isTOFout && isTIME);