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 virtual ~AliFlowTrackSimple();
23 Bool_t UseForIntegratedFlow() const;
24 Bool_t UseForDifferentialFlow() const;
26 void SetEta(Double_t eta);
27 void SetPt(Double_t pt);
28 void SetPhi(Double_t phi);
29 void SetForIntegratedFlow(Bool_t b);
30 void SetForDifferentialFlow(Bool_t b);
36 TBits fFlowBits; // bits to set if track is selected
39 ClassDef(AliFlowTrackSimple,0) // macro for rootcint
43 inline Double_t AliFlowTrackSimple::Eta() const {
45 inline Double_t AliFlowTrackSimple::Pt() const {
46 // cout << "Returned pt:" << fPt << endl;
48 inline Double_t AliFlowTrackSimple::Phi() const {
50 inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const {
51 return fFlowBits.TestBitNumber(0); }
52 inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const {
53 return fFlowBits.TestBitNumber(1); }
55 inline void AliFlowTrackSimple::SetEta(Double_t val) {
57 inline void AliFlowTrackSimple::SetPt(Double_t val) {
59 // cout << "pt set to:" << fPt << endl;}
60 inline void AliFlowTrackSimple::SetPhi(Double_t val) {
62 inline void AliFlowTrackSimple::SetForIntegratedFlow(Bool_t val) {
63 fFlowBits.SetBitNumber(0,val); }
64 inline void AliFlowTrackSimple::SetForDifferentialFlow(Bool_t val) {
65 fFlowBits.SetBitNumber(1,val); }