]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowTrackSimple.h
Moved old reacton plane code to /oldcode
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTrackSimple.h
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
14 class AliFlowTrackSimple: public TObject {
15
16  public:
17   AliFlowTrackSimple();
18   virtual  ~AliFlowTrackSimple();
19   
20   Double_t Eta() const; 
21   Double_t Pt()  const; 
22   Double_t Phi() const; 
23   Bool_t UseForIntegratedFlow() const;
24   Bool_t UseForDifferentialFlow() const;
25   
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);
31   
32  private:
33   Double_t fEta;    // eta
34   Double_t fPt;     // pt
35   Double_t fPhi;    // phi
36   TBits fFlowBits;  // bits to set if track is selected
37   
38
39   ClassDef(AliFlowTrackSimple,0)                 // macro for rootcint
40
41 };
42
43 inline Double_t AliFlowTrackSimple::Eta() const { 
44   return fEta; }
45 inline Double_t AliFlowTrackSimple::Pt() const {  
46   //  cout << "Returned pt:" << fPt << endl; 
47   return fPt;}
48 inline Double_t AliFlowTrackSimple::Phi() const { 
49   return fPhi; }
50 inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const { 
51   return fFlowBits.TestBitNumber(0); }
52 inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const { 
53   return fFlowBits.TestBitNumber(1); }
54
55 inline void AliFlowTrackSimple::SetEta(Double_t val) {
56   fEta = val; }
57 inline void AliFlowTrackSimple::SetPt(Double_t val) {
58   fPt = val; }
59   //  cout << "pt set to:" << fPt << endl;}
60 inline void AliFlowTrackSimple::SetPhi(Double_t val) {
61   fPhi = 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); }
66 #endif
67