Added cut set for kstar analysis (fbellini)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutSetDaughterParticle.h
1 #ifndef ALIRSNCUTSETDAUGHTERPARTICLE_H
2 #define ALIRSNCUTSETDAUGHTERPARTICLE_H
3
4 //
5 // Cuts collection for selecting good daughter candidates for rsn analysis
6 //Requires:
7 // 1) choice of existing cuts among the enum list
8 // 2) PID ipothesis for the daughter particle
9 //
10 // Author: Francesca Bellini (fbellini@cern.ch)
11 //
12
13 #include "AliVTrack.h"
14 #include "AliRsnCut.h"
15 #include "AliRsnCutSet.h"
16 #include "AliRsnCutTrackQuality.h"
17 #include "AliRsnCutPIDNSigma.h"
18 #include "AliRsnCutTOFMatch.h"
19
20 class AliRsnCutSetDaughterParticle : public AliRsnCutSet {
21
22 public:
23
24    enum ERsnDaughterCutSet {
25      kNoCuts,
26      kQualityStd2010,
27      kQualityStd2011,
28      kTOFMatch,
29      kFastTPCpidNsigma,
30      kFastTOFpidNsigma,
31      kTPCTOFpidKstarPP2010,
32      kTOFpidKstarPbPb2010,
33      kNDaughterCuts
34   };
35      
36    AliRsnCutSetDaughterParticle();
37    AliRsnCutSetDaughterParticle(const char *name, 
38                                 AliRsnCutSetDaughterParticle::ERsnDaughterCutSet cutSetID,
39                                 AliPID::EParticleType pid,
40                                 Float_t nsigmaFast);
41    AliRsnCutSetDaughterParticle(const AliRsnCutSetDaughterParticle &copy);
42    AliRsnCutSetDaughterParticle &operator=(const AliRsnCutSetDaughterParticle &copy);
43    virtual ~AliRsnCutSetDaughterParticle() { }
44    
45    void           Init();
46    void           SetNsigmaForFastTPCpid(Float_t nsigma){fNsigmaTPC=nsigma; return;};
47    void           SetNsigmaForFastTOFpid(Float_t nsigma){fNsigmaTOF=nsigma; return;};
48    //getters
49    const char *  GetAppliedDaughterCutSetName() { return GetName();}
50    const Int_t   GetAppliedDaughterCutSetId() { return fAppliedCutSetID;}
51
52 private:
53
54    AliPID::EParticleType fPID;              // PID for track
55    AliRsnCutSetDaughterParticle::ERsnDaughterCutSet    fAppliedCutSetID;     // ID of applied cut
56    Float_t               fNsigmaTPC;         // number of TPC sigmas for fast pid cut only
57    Float_t               fNsigmaTOF;         // number of TOF sigmas for fast pid cut only 
58    ClassDef(AliRsnCutSetDaughterParticle, 1) // cut definitions for K*
59
60 };
61
62 #endif