]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnCutPhi.h
update on v2 calculation
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutPhi.h
1 #ifndef ALIRSNCUTPHI_H
2 #define ALIRSNCUTPHI_H
3
4 /***************************************************************************
5  Class for single track/daughter phi cut.
6  Author: Francesca Bellini (fbellini@cern.ch)
7
8 Options:
9 - "OuterTPC" apply cut to phi estimated at the TPC outer radius 
10 - "InTRD" select phi (at outer TPC radius) region corresponding to the TRD modules
11    (2010 config) where a 5° region is excluded to avoid border effects 
12 - "OutTRD" select phi (at outer TPC radius) region without TRD modules 
13    (2010 config) where a 5° region is excluded to avoid border effects 
14 ****************************************************************************/
15 #include <TMath.h>
16 #include <TClonesArray.h>
17
18 #include "AliESDtrack.h"
19 #include "AliRsnCut.h"
20 //#include "AliRsnValueDaughter.h";
21 #include "AliVTrack.h"
22
23 class AliRsnCutPhi : public AliRsnCut {
24  public:
25   
26   AliRsnCutPhi();
27   AliRsnCutPhi(const char *name, TString opt);
28   AliRsnCutPhi(const AliRsnCutPhi &copy);
29   AliRsnCutPhi &operator=(const AliRsnCutPhi &copy);
30   virtual ~AliRsnCutPhi() { }
31   
32   Bool_t   IsSelected(TObject *object);
33   void     SetPhiRange(Double_t a, Double_t b) {fPhiRange[0]=a; fPhiRange[1]=b; return;};
34   
35  protected:
36   Bool_t   IsInsideTRD(AliVTrack *vtrack);
37   Bool_t   IsOutsideTRD(AliVTrack *vtrack);
38   Bool_t   IsInsideTRD2TOF(AliVTrack *vtrack);
39   Bool_t   IsOutsideTRD2TOF(AliVTrack *vtrack);
40   Double_t GetTrackPhi(AliVTrack * vtrack, Double_t radius);
41
42  private:
43   TString  fOption;
44   Double_t fPhiRange[2];
45   //AliRsnValueDaughter *fPhi;
46   //  Double_t fPhi;
47   ClassDef(AliRsnCutPhi, 1)
48     
49 };
50
51 #endif