]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowTrackSimpleCuts.h
updated streamer version and macros cleaned up for removed class
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowTrackSimpleCuts.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. */
2 /* See cxx source for full Copyright notice */
3 /* $Id$ */
4
5 // AliFlowTrackSimpleCuts:
6 // A simple track cut class to the the AliFlowTrackSimple for basic
7 // kinematic cuts
8 // author: N. van der Kolk (kolk@nikhef.nl)
9 // mods: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch)
10
11 #ifndef ALIFLOWTRACKSIMPLECUTS_H
12 #define ALIFLOWTRACKSIMPLECUTS_H
13
14 #include "TNamed.h"
15 #include "AliFlowTrackSimple.h"  //needed as include
16
17 class TParticle;
18
19 class AliFlowTrackSimpleCuts : public TNamed {
20
21  public:
22   AliFlowTrackSimpleCuts();
23   AliFlowTrackSimpleCuts(const AliFlowTrackSimpleCuts& someCuts);
24   AliFlowTrackSimpleCuts& operator=(const AliFlowTrackSimpleCuts& someCuts);
25   virtual  ~AliFlowTrackSimpleCuts();
26   
27   //setters
28   void SetPtMax(Double_t max)   {this->fPtMax = max; }
29   void SetPtMin(Double_t min)   {this->fPtMin = min; }
30   void SetEtaMax(Double_t max)  {this->fEtaMax = max; }
31   void SetEtaMin(Double_t min)  {this->fEtaMin = min; }
32   void SetPhiMax(Double_t max)  {this->fPhiMax = max; }
33   void SetPhiMin(Double_t min)  {this->fPhiMin = min; }
34   void SetPID(Int_t pid)        {this->fPID = pid; }
35   
36   //getters
37   Double_t GetPtMax() const     {return this->fPtMax; }
38   Double_t GetPtMin() const     {return this->fPtMin; }
39   Double_t GetEtaMax() const    {return this->fEtaMax; }
40   Double_t GetEtaMin() const    {return this->fEtaMin; }
41   Double_t GetPhiMax() const    {return this->fPhiMax; }
42   Double_t GetPhiMin() const    {return this->fPhiMin; }
43   Int_t    GetPID() const       {return this->fPID; }
44   
45   //simple method to check if the simple track passes the simple cuts:
46   Bool_t PassesCuts(const AliFlowTrackSimple *track) const;
47   Bool_t PassesCuts(const TParticle* p) const;
48
49  private:
50   Double_t fPtMax;
51   Double_t fPtMin;
52   Double_t fEtaMax;
53   Double_t fEtaMin;
54   Double_t fPhiMax;
55   Double_t fPhiMin;
56   Int_t    fPID;
57
58   ClassDef(AliFlowTrackSimpleCuts,1)
59 };
60
61 #endif
62
63