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
11 // AliFlowTrackSimple:
12 // A simple track class to the the AliFlowEventSimple for flow analysis
13 // author: N. van der Kolk (kolk@nikhef.nl)
15 class AliFlowTrackSimple: public TNamed {
19 AliFlowTrackSimple(const AliFlowTrackSimple& aTrack);
20 AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
21 virtual ~AliFlowTrackSimple();
23 Bool_t IsFolder() const {return kTRUE;};
24 // void Browse(TBrowser *b);
25 // void Print(Option_t* option = "") const; //method to print stats
31 TBits GetFlowBits() const;
32 Bool_t InRPSelection() const;
33 Bool_t InPOISelection() const;
34 Bool_t InSubevent(Int_t i) const;
36 void SetEta(Double_t eta);
37 void SetPt(Double_t pt);
38 void SetPhi(Double_t phi);
39 void SetForRPSelection(Bool_t b);
40 void SetForPOISelection(Bool_t b);
41 void SetForSubevent(Int_t i);
47 TBits fFlowBits; // bits to set if track is selected
48 TBits fSubEventBits; // bits to set if track is selected for a subevent
51 ClassDef(AliFlowTrackSimple,1) // macro for rootcint
55 inline Double_t AliFlowTrackSimple::Eta() const {
57 inline Double_t AliFlowTrackSimple::Pt() const {
58 // cout << "Returned pt:" << fPt << endl;
60 inline Double_t AliFlowTrackSimple::Phi() const {
63 inline TBits AliFlowTrackSimple::GetFlowBits() const {
64 return this->fFlowBits; }
65 inline Bool_t AliFlowTrackSimple::InRPSelection() const {
66 return this->fFlowBits.TestBitNumber(0); }
67 inline Bool_t AliFlowTrackSimple::InPOISelection() const {
68 return this->fFlowBits.TestBitNumber(1); }
69 inline Bool_t AliFlowTrackSimple::InSubevent(Int_t i) const {
70 return this->fSubEventBits.TestBitNumber(i); }
72 inline void AliFlowTrackSimple::SetEta(Double_t val) {
74 inline void AliFlowTrackSimple::SetPt(Double_t val) {
76 // cout << "pt set to:" << fPt << endl;}
77 inline void AliFlowTrackSimple::SetPhi(Double_t val) {
80 inline void AliFlowTrackSimple::SetForRPSelection(Bool_t val) {
81 fFlowBits.SetBitNumber(0,val); }
82 inline void AliFlowTrackSimple::SetForPOISelection(Bool_t val) {
83 fFlowBits.SetBitNumber(1,val); }
84 inline void AliFlowTrackSimple::SetForSubevent(Int_t i) {
85 fSubEventBits.SetBitNumber(i,kTRUE); }