AliPhysics  master (3d17d9d)
AliFilteredTreeAcceptanceCuts.h
Go to the documentation of this file.
1 #ifndef ALIFILTEREDTREEACCEPTANCECUTS_H
2 #define ALIFILTEREDTREEACCEPTANCECUTS_H
3 
4 //------------------------------------------------------------------------------
5 // Class to keep selection cuts for MC tracks.
6 //
7 // Author: J.Otwinowski 03/11/2008
8 // last change: 2011-04-04 by M.Knichel
9 // Modifications - usage of DCA cuts marian.ivanov@cern.ch
10 //------------------------------------------------------------------------------
11 
12 class TParticle;
13 class AliESDtrack;
14 class AliExternalTrackParam;
15 
16 #include "AliAnalysisCuts.h"
17 
18 class AliFilteredTreeAcceptanceCuts : public AliAnalysisCuts
19 {
20 public:
21  AliFilteredTreeAcceptanceCuts(const Char_t* name ="AliFilteredTreeAcceptanceCuts", const Char_t *title ="");
23 
24  // setters
25  void SetEtaRange(Float_t min=-1e99, Float_t max=1e99) { fMinEta=min; fMaxEta=max; }
26  void SetPhiRange(Float_t min=-1e99, Float_t max=1e99) { fMinPhi=min; fMaxPhi=max;}
27  void SetPtRange(Float_t min=-1e99, Float_t max=1e99) { fMinPt=min; fMaxPt=max;}
32 
33  void SetMaxDCAr(Float_t max=100) { fMaxDCAr=max;}
34  void SetMaxDCAz(Float_t max=100) { fMaxDCAz=max;}
35 
36  // getters
37  Float_t GetMinEta() const {return fMinEta;}
38  Float_t GetMaxEta() const {return fMaxEta;}
39  Float_t GetMinPhi() const {return fMinPhi;}
40  Float_t GetMaxPhi() const {return fMaxPhi;}
41  Float_t GetMinPt() const {return fMinPt;}
42  Float_t GetMaxPt() const {return fMaxPt;}
43 
44  Bool_t GetCheckRange() const { return fCheckRange; }
49 
50  Float_t GetMaxDCAr() const {return fMaxDCAr;}
51  Float_t GetMaxDCAz() const {return fMaxDCAz;}
52 
53  // cuts init function
54  void Init();
55 
56  // check MC tracks
57  virtual Bool_t IsSelected(TObject *) {return kTRUE;}
58  virtual Bool_t IsSelected(TList *) {return kTRUE;}
59 
60  //
61  Bool_t AcceptTrack(AliESDtrack *track);
62  Bool_t AcceptTrackLocalTPC(AliESDtrack *track);
63  Bool_t AcceptTrack(AliExternalTrackParam *track);
64  Bool_t AcceptTrack(TParticle *particle);
65 
66  // Merge output objects (needed by PROOF)
67  virtual Long64_t Merge(TCollection* list);
68 
69 private:
70  Float_t fMinEta; // min pseudorapidity
71  Float_t fMaxEta; // max pseudorapidity
72  Float_t fMinPhi; // min azimuthal angle (rad)
73  Float_t fMaxPhi; // max azimuthal angle (rad)
74  Float_t fMinPt; // min pt
75  Float_t fMaxPt; // max pt
76 
86 
87  // max DCAr and DCAz with respect
88  // to nominal vertex position
89  Float_t fMaxDCAr; // min DCAr
90  Float_t fMaxDCAz; // max DCAz
91 
94 
96 };
97 
98 #endif //
const char * title
Definition: MakeQAPdf.C:27
long long Long64_t
Definition: External.C:43
char Char_t
Definition: External.C:18
Double_t phiMin
void SetExcludeEtaPhiRange(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
float Float_t
Definition: External.C:68
Double_t phiMax
AliFilteredTreeAcceptanceCuts(const Char_t *name="AliFilteredTreeAcceptanceCuts", const Char_t *title="")
void SetExcludeEtaPhiRange2(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
void SetPtRange(Float_t min=-1e99, Float_t max=1e99)
AliFilteredTreeAcceptanceCuts & operator=(const AliFilteredTreeAcceptanceCuts &)
Bool_t AcceptTrackLocalTPC(AliESDtrack *track)
void SetEtaRange(Float_t min=-1e99, Float_t max=1e99)
bool Bool_t
Definition: External.C:53
void SetPhiRange(Float_t min=-1e99, Float_t max=1e99)
virtual Long64_t Merge(TCollection *list)