]>
Commit | Line | Data |
---|---|---|
d29ba078 | 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) | |
929098e4 | 9 | // mods: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch) |
d29ba078 | 10 | |
e1911c19 | 11 | #ifndef ALIFLOWTRACKSIMPLECUTS_H |
12 | #define ALIFLOWTRACKSIMPLECUTS_H | |
d29ba078 | 13 | |
929098e4 | 14 | #include "TNamed.h" |
e1911c19 | 15 | #include "AliFlowTrackSimple.h" //needed as include |
d29ba078 | 16 | |
929098e4 | 17 | class TParticle; |
e1911c19 | 18 | |
19 | class AliFlowTrackSimpleCuts : public TNamed { | |
d29ba078 | 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; } | |
701f71c1 | 35 | void SetCharge(Int_t c) {this->fCharge = c; } |
d29ba078 | 36 | |
37 | //getters | |
38 | Double_t GetPtMax() const {return this->fPtMax; } | |
39 | Double_t GetPtMin() const {return this->fPtMin; } | |
40 | Double_t GetEtaMax() const {return this->fEtaMax; } | |
41 | Double_t GetEtaMin() const {return this->fEtaMin; } | |
42 | Double_t GetPhiMax() const {return this->fPhiMax; } | |
43 | Double_t GetPhiMin() const {return this->fPhiMin; } | |
44 | Int_t GetPID() const {return this->fPID; } | |
701f71c1 | 45 | Int_t GetCharge() const {return this->fCharge; } |
e1911c19 | 46 | |
47 | //simple method to check if the simple track passes the simple cuts: | |
929098e4 | 48 | Bool_t PassesCuts(const AliFlowTrackSimple *track) const; |
701f71c1 | 49 | Bool_t PassesCuts(TParticle* p) const; |
d29ba078 | 50 | |
51 | private: | |
52 | Double_t fPtMax; | |
53 | Double_t fPtMin; | |
54 | Double_t fEtaMax; | |
55 | Double_t fEtaMin; | |
56 | Double_t fPhiMax; | |
57 | Double_t fPhiMin; | |
58 | Int_t fPID; | |
701f71c1 | 59 | Int_t fCharge; |
60 | ||
61 | static const Int_t fgkIgnoreCharge=999; | |
d29ba078 | 62 | |
63 | ClassDef(AliFlowTrackSimpleCuts,1) | |
64 | }; | |
65 | ||
66 | #endif | |
67 | ||
68 |