]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowTrackSimpleCuts.h
adds tracklets to flow cuts, fixes for MC analysis + other fixes.
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowTrackSimpleCuts.h
CommitLineData
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 17class TParticle;
e1911c19 18
19class AliFlowTrackSimpleCuts : public TNamed {
d29ba078 20
21 public:
22 AliFlowTrackSimpleCuts();
b4dba88d 23 //AliFlowTrackSimpleCuts(const AliFlowTrackSimpleCuts& someCuts);
24 //AliFlowTrackSimpleCuts& operator=(const AliFlowTrackSimpleCuts& someCuts);
25 virtual ~AliFlowTrackSimpleCuts() {}
d29ba078 26
27 //setters
b4dba88d 28 void SetPtMax(Double_t max) {this->fPtMax = max; fCutPt=kTRUE; }
29 void SetPtMin(Double_t min) {this->fPtMin = min; fCutPt=kTRUE; }
30 void SetEtaMax(Double_t max) {this->fEtaMax = max; fCutEta=kTRUE; }
31 void SetEtaMin(Double_t min) {this->fEtaMin = min; fCutEta=kTRUE; }
32 void SetPhiMax(Double_t max) {this->fPhiMax = max; fCutPhi=kTRUE; }
33 void SetPhiMin(Double_t min) {this->fPhiMin = min; fCutPhi=kTRUE; }
34 void SetPID(Int_t pid) {this->fPID = pid; fCutPID=kTRUE; }
35 void SetCharge(Int_t c) {this->fCharge = c; fCutCharge=kTRUE; }
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
12b2b8bc 51 virtual Bool_t IsSelected(TObject* obj, Int_t id=-1);
daf66719 52
53 protected:
b4dba88d 54 Bool_t fCutPt;
d29ba078 55 Double_t fPtMax;
56 Double_t fPtMin;
b4dba88d 57 Bool_t fCutEta;
d29ba078 58 Double_t fEtaMax;
59 Double_t fEtaMin;
b4dba88d 60 Bool_t fCutPhi;
d29ba078 61 Double_t fPhiMax;
62 Double_t fPhiMin;
b4dba88d 63 Bool_t fCutPID;
d29ba078 64 Int_t fPID;
b4dba88d 65 Bool_t fCutCharge;
701f71c1 66 Int_t fCharge;
67
d29ba078 68 ClassDef(AliFlowTrackSimpleCuts,1)
69};
70
71#endif
72
73