]>
Commit | Line | Data |
---|---|---|
667cb951 | 1 | #ifndef ALIRSNCUTDAUGHTERLSTAR2010_H |
2 | #define ALIRSNCUTDAUGHTERLSTAR2010_H | |
3 | ||
4 | // | |
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. | |
9 | // | |
10 | ||
11 | #include "AliVTrack.h" | |
12 | #include "AliRsnCut.h" | |
13 | #include "AliRsnCutTrackQuality.h" | |
14 | ||
15 | class AliRsnCutDaughterLStar2010 : public AliRsnCut { | |
16 | ||
17 | public: | |
18 | ||
19 | AliRsnCutDaughterLStar2010(const char *name = "", AliPID::EParticleType pid = AliPID::kKaon); | |
20 | virtual ~AliRsnCutDaughterLStar2010() { } | |
61f275d1 | 21 | |
667cb951 | 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); | |
26 | ||
27 | private: | |
28 | ||
29 | AliPID::EParticleType fPID; // PID for track | |
30 | AliRsnCutTrackQuality fCutQuality; // track quality cut | |
31 | ||
32 | ClassDef(AliRsnCutDaughterLStar2010,1) // cut definitions for L* | |
33 | ||
34 | }; | |
35 | ||
36 | //__________________________________________________________________________________________________ | |
37 | inline Bool_t AliRsnCutDaughterLStar2010::MatchTOF(const AliVTrack *vtrack) | |
38 | { | |
39 | // | |
40 | // Checks if the track has matched the TOF detector | |
41 | // | |
42 | ||
43 | if (!vtrack) { | |
44 | AliWarning("NULL argument: impossible to check status"); | |
45 | return kFALSE; | |
46 | } | |
47 | ||
48 | if (!(vtrack->GetStatus() & AliESDtrack::kTOFout)) return kFALSE; | |
49 | if (!(vtrack->GetStatus() & AliESDtrack::kTIME )) return kFALSE; | |
50 | ||
51 | return kTRUE; | |
52 | } | |
53 | ||
54 | #endif |