]>
Commit | Line | Data |
---|---|---|
bd74a0e6 | 1 | #ifndef ALIRSNCUTDAUGHTERSIGMASTAR2010PP_H |
2 | #define ALIRSNCUTDAUGHTERSIGMASTAR2010PP_H | |
3 | ||
4 | // | |
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. | |
9 | // | |
10 | ||
11 | #include "AliVTrack.h" | |
12 | #include "AliRsnCut.h" | |
13 | #include "AliRsnCutTrackQuality.h" | |
14 | ||
15 | class AliRsnCutDaughterSigmaStar2010PP : public AliRsnCut { | |
16 | ||
17 | public: | |
18 | ||
19 | AliRsnCutDaughterSigmaStar2010PP(const char *name = "", AliPID::EParticleType pid = AliPID::kPion); | |
92932daf | 20 | AliRsnCutDaughterSigmaStar2010PP(const AliRsnCutDaughterSigmaStar2010PP ©); |
21 | AliRsnCutDaughterSigmaStar2010PP &operator=(const AliRsnCutDaughterSigmaStar2010PP ©); | |
bd74a0e6 | 22 | virtual ~AliRsnCutDaughterSigmaStar2010PP() { } |
61f275d1 | 23 | |
92932daf | 24 | AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;} |
bd74a0e6 | 25 | Bool_t MatchTOF(const AliVTrack *vtrack); |
26 | virtual Bool_t IsSelected(TObject *obj); | |
27 | ||
92932daf | 28 | void SetPIDCut(Double_t value) {fPIDCut = value;} |
29 | void SetMinTPCcluster(Int_t value) {fMinTPCcluster = value;} | |
30 | void SetDCARPtFormula(const char *formula) {fDCARptFormula = formula;} | |
31 | ||
bd74a0e6 | 32 | private: |
33 | ||
92932daf | 34 | AliPID::EParticleType fPID; // PID for track |
35 | AliRsnCutTrackQuality fCutQuality; // track quality cut | |
bd74a0e6 | 36 | |
3da8cef7 | 37 | ClassDef(AliRsnCutDaughterSigmaStar2010PP,2) // cut definitions for Sigma* |
38 | ||
39 | protected: | |
40 | ||
92932daf | 41 | Double_t fPIDCut; // nsigmas for pions |
42 | Int_t fMinTPCcluster; // min allowed TPC cluster | |
43 | TString fDCARptFormula; // min DCAR pt dependent formula | |
bd74a0e6 | 44 | }; |
45 | ||
46 | //__________________________________________________________________________________________________ | |
47 | inline Bool_t AliRsnCutDaughterSigmaStar2010PP::MatchTOF(const AliVTrack *vtrack) | |
48 | { | |
49 | // | |
50 | // Checks if the track has matched the TOF detector | |
51 | // | |
52 | ||
53 | if (!vtrack) { | |
54 | AliWarning("NULL argument: impossible to check status"); | |
55 | return kFALSE; | |
56 | } | |
57 | ||
58 | if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE; | |
59 | if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE; | |
60 | ||
61 | return kTRUE; | |
62 | } | |
63 | ||
64 | #endif |