]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliKineTrackCuts.h
25ca45d2ceea4f83b7c0e2ad2bdc6d2419a21551
[u/mrichter/AliRoot.git] / ANALYSIS / AliKineTrackCuts.h
1 #ifndef ALIKINETRACKCUTS_H
2 #define ALIKINETRACKCUTS_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 #include "AliAnalysisCuts.h"
8
9 class  TObject;
10
11 class AliKineTrackCuts : public AliAnalysisCuts
12 {
13
14 public:
15                       AliKineTrackCuts(const Char_t* name = "AliKineTrackCuts", const Char_t* title = "");
16   virtual            ~AliKineTrackCuts(){;}
17   
18             Bool_t    IsSelected(TObject* obj);
19             
20               void    SetFinalParticles( Bool_t val=kTRUE )          { fOnlyFinalParticles = val; }
21               void    SetPrimaryParticles( Bool_t val=kTRUE )        { fOnlyPrimary = val; }
22   // track kinematic cut setters
23               void    SetPRange(Float_t r1=0, Float_t r2=1e10)       { fPMin=r1;   fPMax=r2;}
24               void    SetPtRange(Float_t r1=0, Float_t r2=1e10)      { fPtMin=r1;  fPtMax=r2;}
25               void    SetPxRange(Float_t r1=-1e10, Float_t r2=1e10)  { fPxMin=r1;  fPxMax=r2;}
26               void    SetPyRange(Float_t r1=-1e10, Float_t r2=1e10)  { fPyMin=r1;  fPyMax=r2;}
27               void    SetPzRange(Float_t r1=-1e10, Float_t r2=1e10)  { fPzMin=r1;  fPzMax=r2;}
28               void    SetEtaRange(Float_t r1=-1e10, Float_t r2=1e10) { fEtaMin=r1; fEtaMax=r2;}
29               void    SetRapRange(Float_t r1=-1e10, Float_t r2=1e10) { fRapMin=r1; fRapMax=r2;}
30                   
31 protected:        
32                   
33            Bool_t    fOnlyFinalParticles;   // true => skip part with GetStatusCode()!=1
34            Bool_t    fOnlyPrimary;          // Only Primary Particles
35   // kinematics cuts
36            Float_t   fPMin,   fPMax;        // definition of the range of the P
37            Float_t   fPtMin,  fPtMax;       // definition of the range of the Pt
38            Float_t   fPxMin,  fPxMax;       // definition of the range of the Px
39            Float_t   fPyMin,  fPyMax;       // definition of the range of the Py
40            Float_t   fPzMin,  fPzMax;       // definition of the range of the Pz
41            Float_t   fEtaMin, fEtaMax;      // definition of the range of the eta
42            Float_t   fRapMin, fRapMax;      // definition of the range of the y
43   
44   
45   ClassDef(AliKineTrackCuts, 1)
46 };
47
48
49 #endif