name change Int/Diff RP/POI
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowTrackSimple.h
CommitLineData
f1d945a1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2* See cxx source for full Copyright notice */
3/* $Id$ */
4
5#ifndef AliFlowTrackSimple_H
6#define AliFlowTrackSimple_H
7
8#include "TBits.h"
9
10// AliFlowTrackSimple:
11// A simple track class to the the AliFlowEventSimple for flow analysis
12// author: N. van der Kolk (kolk@nikhef.nl)
13
14class AliFlowTrackSimple: public TObject {
15
16 public:
17 AliFlowTrackSimple();
bc6b015e 18 AliFlowTrackSimple(const AliFlowTrackSimple& aTrack);
19 AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
f1d945a1 20 virtual ~AliFlowTrackSimple();
21
c076fda8 22 Bool_t IsFolder() const {return kTRUE;};
23 // void Browse(TBrowser *b);
24 // void Print(Option_t* option = "") const; //method to print stats
25
26
f1d945a1 27 Double_t Eta() const;
28 Double_t Pt() const;
29 Double_t Phi() const;
88e00a8a 30 TBits GetFlowBits() const;
31 Bool_t UseForIntegratedFlow() const;
32 Bool_t UseForDifferentialFlow() const;
1918addd 33 Bool_t InRPSelection() const; //will replace UseForIntegratedFlow()
34 Bool_t InPOISelection() const; //will replace UseForDifferentialFlow()
f1d945a1 35
36 void SetEta(Double_t eta);
37 void SetPt(Double_t pt);
38 void SetPhi(Double_t phi);
39 void SetForIntegratedFlow(Bool_t b);
40 void SetForDifferentialFlow(Bool_t b);
1918addd 41 void SetForRPSelection(Bool_t b); //will replace SetForIntegratedFlow
42 void SetForPOISelection(Bool_t b); //will replace SetForDifferentialFlow
f1d945a1 43
44 private:
45 Double_t fEta; // eta
46 Double_t fPt; // pt
47 Double_t fPhi; // phi
48 TBits fFlowBits; // bits to set if track is selected
49
50
1c1d4332 51 ClassDef(AliFlowTrackSimple,1) // macro for rootcint
f1d945a1 52
53};
54
55inline Double_t AliFlowTrackSimple::Eta() const {
88e00a8a 56 return this->fEta; }
f1d945a1 57inline Double_t AliFlowTrackSimple::Pt() const {
58 // cout << "Returned pt:" << fPt << endl;
88e00a8a 59 return this->fPt;}
f1d945a1 60inline Double_t AliFlowTrackSimple::Phi() const {
88e00a8a 61 return this->fPhi; }
62inline TBits AliFlowTrackSimple::GetFlowBits() const {
63 return this->fFlowBits; }
f1d945a1 64inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const {
88e00a8a 65 return this->fFlowBits.TestBitNumber(0); }
f1d945a1 66inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const {
88e00a8a 67 return this->fFlowBits.TestBitNumber(1); }
1918addd 68inline Bool_t AliFlowTrackSimple::InRPSelection() const {
69 return this->fFlowBits.TestBitNumber(0); }
70inline Bool_t AliFlowTrackSimple::InPOISelection() const {
71 return this->fFlowBits.TestBitNumber(1); }
f1d945a1 72
73inline void AliFlowTrackSimple::SetEta(Double_t val) {
74 fEta = val; }
75inline void AliFlowTrackSimple::SetPt(Double_t val) {
76 fPt = val; }
77 // cout << "pt set to:" << fPt << endl;}
78inline void AliFlowTrackSimple::SetPhi(Double_t val) {
79 fPhi = val; }
1918addd 80inline void AliFlowTrackSimple::SetForIntegratedFlow(Bool_t val) { //replace
81 fFlowBits.SetBitNumber(0,val); }
82inline void AliFlowTrackSimple::SetForDifferentialFlow(Bool_t val) { //replace
83 fFlowBits.SetBitNumber(1,val); }
84inline void AliFlowTrackSimple::SetForRPSelection(Bool_t val) {
f1d945a1 85 fFlowBits.SetBitNumber(0,val); }
1918addd 86inline void AliFlowTrackSimple::SetForPOISelection(Bool_t val) {
f1d945a1 87 fFlowBits.SetBitNumber(1,val); }
88#endif
89