]>
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); | |
20 | virtual ~AliRsnCutDaughterSigmaStar2010PP() { } | |
61f275d1 | 21 | |
92932daf | 22 | AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;} |
bd74a0e6 | 23 | Bool_t MatchTOF(const AliVTrack *vtrack); |
24 | virtual Bool_t IsSelected(TObject *obj); | |
25 | ||
92932daf | 26 | void SetPIDCut(Double_t value) {fPIDCut = value;} |
27 | void SetMinTPCcluster(Int_t value) {fMinTPCcluster = value;} | |
65ddd3ef | 28 | //void SetDCARPtFormula(const char *formula) {fDCARptFormula = formula;} |
29 | void SetDCARmax(Double_t value) {fDCARmax = value;} | |
92932daf | 30 | |
bd74a0e6 | 31 | private: |
cbc51d28 | 32 | AliRsnCutDaughterSigmaStar2010PP(const AliRsnCutDaughterSigmaStar2010PP ©); // Not implemented |
33 | AliRsnCutDaughterSigmaStar2010PP &operator=(const AliRsnCutDaughterSigmaStar2010PP ©); // Not implemented | |
bd74a0e6 | 34 | |
92932daf | 35 | AliPID::EParticleType fPID; // PID for track |
36 | AliRsnCutTrackQuality fCutQuality; // track quality cut | |
bd74a0e6 | 37 | |
3da8cef7 | 38 | ClassDef(AliRsnCutDaughterSigmaStar2010PP,2) // cut definitions for Sigma* |
39 | ||
40 | protected: | |
41 | ||
92932daf | 42 | Double_t fPIDCut; // nsigmas for pions |
43 | Int_t fMinTPCcluster; // min allowed TPC cluster | |
65ddd3ef | 44 | Double_t fDCARmax; // max DCA for tracks |
45 | //TString fDCARptFormula; // min DCAR pt dependent formula | |
bd74a0e6 | 46 | }; |
47 | ||
48 | //__________________________________________________________________________________________________ | |
49 | inline Bool_t AliRsnCutDaughterSigmaStar2010PP::MatchTOF(const AliVTrack *vtrack) | |
50 | { | |
51 | // | |
52 | // Checks if the track has matched the TOF detector | |
53 | // | |
54 | ||
55 | if (!vtrack) { | |
56 | AliWarning("NULL argument: impossible to check status"); | |
57 | return kFALSE; | |
58 | } | |
59 | ||
60 | if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE; | |
61 | if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE; | |
62 | ||
63 | return kTRUE; | |
64 | } | |
65 | ||
66 | #endif |