1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 #ifndef AliFlowTrackSimple_H
6 #define AliFlowTrackSimple_H
10 // AliFlowTrackSimple:
11 // A simple track class to the the AliFlowEventSimple for flow analysis
12 // author: N. van der Kolk (kolk@nikhef.nl)
14 class AliFlowTrackSimple: public TObject {
18 AliFlowTrackSimple(const AliFlowTrackSimple& aTrack);
19 AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
20 virtual ~AliFlowTrackSimple();
25 TBits GetFlowBits() const;
26 Bool_t UseForIntegratedFlow() const;
27 Bool_t UseForDifferentialFlow() const;
29 void SetEta(Double_t eta);
30 void SetPt(Double_t pt);
31 void SetPhi(Double_t phi);
32 void SetForIntegratedFlow(Bool_t b);
33 void SetForDifferentialFlow(Bool_t b);
39 TBits fFlowBits; // bits to set if track is selected
42 ClassDef(AliFlowTrackSimple,0) // macro for rootcint
46 inline Double_t AliFlowTrackSimple::Eta() const {
48 inline Double_t AliFlowTrackSimple::Pt() const {
49 // cout << "Returned pt:" << fPt << endl;
51 inline Double_t AliFlowTrackSimple::Phi() const {
53 inline TBits AliFlowTrackSimple::GetFlowBits() const {
54 return this->fFlowBits; }
55 inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const {
56 return this->fFlowBits.TestBitNumber(0); }
57 inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const {
58 return this->fFlowBits.TestBitNumber(1); }
60 inline void AliFlowTrackSimple::SetEta(Double_t val) {
62 inline void AliFlowTrackSimple::SetPt(Double_t val) {
64 // cout << "pt set to:" << fPt << endl;}
65 inline void AliFlowTrackSimple::SetPhi(Double_t val) {
67 inline void AliFlowTrackSimple::SetForIntegratedFlow(Bool_t val) {
68 fFlowBits.SetBitNumber(0,val); }
69 inline void AliFlowTrackSimple::SetForDifferentialFlow(Bool_t val) {
70 fFlowBits.SetBitNumber(1,val); }