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();
22 Bool_t IsFolder() const {return kTRUE;};
23 // void Browse(TBrowser *b);
24 // void Print(Option_t* option = "") const; //method to print stats
30 TBits GetFlowBits() const;
31 Bool_t InRPSelection() const;
32 Bool_t InPOISelection() const;
34 void SetEta(Double_t eta);
35 void SetPt(Double_t pt);
36 void SetPhi(Double_t phi);
37 void SetForRPSelection(Bool_t b);
38 void SetForPOISelection(Bool_t b);
44 TBits fFlowBits; // bits to set if track is selected
47 ClassDef(AliFlowTrackSimple,1) // macro for rootcint
51 inline Double_t AliFlowTrackSimple::Eta() const {
53 inline Double_t AliFlowTrackSimple::Pt() const {
54 // cout << "Returned pt:" << fPt << endl;
56 inline Double_t AliFlowTrackSimple::Phi() const {
58 inline TBits AliFlowTrackSimple::GetFlowBits() const {
59 return this->fFlowBits; }
60 inline Bool_t AliFlowTrackSimple::InRPSelection() const {
61 return this->fFlowBits.TestBitNumber(0); }
62 inline Bool_t AliFlowTrackSimple::InPOISelection() const {
63 return this->fFlowBits.TestBitNumber(1); }
65 inline void AliFlowTrackSimple::SetEta(Double_t val) {
67 inline void AliFlowTrackSimple::SetPt(Double_t val) {
69 // cout << "pt set to:" << fPt << endl;}
70 inline void AliFlowTrackSimple::SetPhi(Double_t val) {
72 inline void AliFlowTrackSimple::SetForRPSelection(Bool_t val) {
73 fFlowBits.SetBitNumber(0,val); }
74 inline void AliFlowTrackSimple::SetForPOISelection(Bool_t val) {
75 fFlowBits.SetBitNumber(1,val); }