ROOT logo
#ifndef ALIRSNCUTPHI_H
#define ALIRSNCUTPHI_H

/***************************************************************************
 Class for single track/daughter phi cut.
 Author: Francesca Bellini (fbellini@cern.ch)

Options:
- "OuterTPC" apply cut to phi estimated at the TPC outer radius 
- "InTRD" select phi (at outer TPC radius) region corresponding to the TRD modules
   (2010 config) where a 5° region is excluded to avoid border effects 
- "OutTRD" select phi (at outer TPC radius) region without TRD modules 
   (2010 config) where a 5° region is excluded to avoid border effects 
****************************************************************************/
#include <TMath.h>
#include <TClonesArray.h>

#include "AliESDtrack.h"
#include "AliRsnCut.h"
//#include "AliRsnValueDaughter.h";
#include "AliVTrack.h"

class AliRsnCutPhi : public AliRsnCut {
 public:
  
  AliRsnCutPhi();
  AliRsnCutPhi(const char *name, TString opt);
  AliRsnCutPhi(const AliRsnCutPhi &copy);
  AliRsnCutPhi &operator=(const AliRsnCutPhi &copy);
  virtual ~AliRsnCutPhi() { }
  
  Bool_t   IsSelected(TObject *object);
  void     SetPhiRange(Double_t a, Double_t b) {fPhiRange[0]=a; fPhiRange[1]=b; return;};
  
 protected:
  Bool_t   IsInsideTRD(AliVTrack *vtrack);
  Bool_t   IsOutsideTRD(AliVTrack *vtrack);
  Bool_t   IsInsideTRD2TOF(AliVTrack *vtrack);
  Bool_t   IsOutsideTRD2TOF(AliVTrack *vtrack);
  Double_t GetTrackPhi(AliVTrack * vtrack, Double_t radius);

 private:
  TString  fOption;
  Double_t fPhiRange[2];
  //AliRsnValueDaughter *fPhi;
  //  Double_t fPhi;
  ClassDef(AliRsnCutPhi, 1)
    
};

#endif
 AliRsnCutPhi.h:1
 AliRsnCutPhi.h:2
 AliRsnCutPhi.h:3
 AliRsnCutPhi.h:4
 AliRsnCutPhi.h:5
 AliRsnCutPhi.h:6
 AliRsnCutPhi.h:7
 AliRsnCutPhi.h:8
 AliRsnCutPhi.h:9
 AliRsnCutPhi.h:10
 AliRsnCutPhi.h:11
 AliRsnCutPhi.h:12
 AliRsnCutPhi.h:13
 AliRsnCutPhi.h:14
 AliRsnCutPhi.h:15
 AliRsnCutPhi.h:16
 AliRsnCutPhi.h:17
 AliRsnCutPhi.h:18
 AliRsnCutPhi.h:19
 AliRsnCutPhi.h:20
 AliRsnCutPhi.h:21
 AliRsnCutPhi.h:22
 AliRsnCutPhi.h:23
 AliRsnCutPhi.h:24
 AliRsnCutPhi.h:25
 AliRsnCutPhi.h:26
 AliRsnCutPhi.h:27
 AliRsnCutPhi.h:28
 AliRsnCutPhi.h:29
 AliRsnCutPhi.h:30
 AliRsnCutPhi.h:31
 AliRsnCutPhi.h:32
 AliRsnCutPhi.h:33
 AliRsnCutPhi.h:34
 AliRsnCutPhi.h:35
 AliRsnCutPhi.h:36
 AliRsnCutPhi.h:37
 AliRsnCutPhi.h:38
 AliRsnCutPhi.h:39
 AliRsnCutPhi.h:40
 AliRsnCutPhi.h:41
 AliRsnCutPhi.h:42
 AliRsnCutPhi.h:43
 AliRsnCutPhi.h:44
 AliRsnCutPhi.h:45
 AliRsnCutPhi.h:46
 AliRsnCutPhi.h:47
 AliRsnCutPhi.h:48
 AliRsnCutPhi.h:49
 AliRsnCutPhi.h:50
 AliRsnCutPhi.h:51