]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowTrackSimple.h
make it browsable (partly)
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowTrackSimple.h
CommitLineData
f1d945a1 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
14class AliFlowTrackSimple: public TObject {
15
16 public:
17 AliFlowTrackSimple();
bc6b015e 18 AliFlowTrackSimple(const AliFlowTrackSimple& aTrack);
19 AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
f1d945a1 20 virtual ~AliFlowTrackSimple();
21
c076fda8 22 Bool_t IsFolder() const {return kTRUE;};
23 // void Browse(TBrowser *b);
24 // void Print(Option_t* option = "") const; //method to print stats
25
26
f1d945a1 27 Double_t Eta() const;
28 Double_t Pt() const;
29 Double_t Phi() const;
88e00a8a 30 TBits GetFlowBits() const;
31 Bool_t UseForIntegratedFlow() const;
32 Bool_t UseForDifferentialFlow() const;
f1d945a1 33
34 void SetEta(Double_t eta);
35 void SetPt(Double_t pt);
36 void SetPhi(Double_t phi);
37 void SetForIntegratedFlow(Bool_t b);
38 void SetForDifferentialFlow(Bool_t b);
39
40 private:
41 Double_t fEta; // eta
42 Double_t fPt; // pt
43 Double_t fPhi; // phi
44 TBits fFlowBits; // bits to set if track is selected
45
46
1c1d4332 47 ClassDef(AliFlowTrackSimple,1) // macro for rootcint
f1d945a1 48
49};
50
51inline Double_t AliFlowTrackSimple::Eta() const {
88e00a8a 52 return this->fEta; }
f1d945a1 53inline Double_t AliFlowTrackSimple::Pt() const {
54 // cout << "Returned pt:" << fPt << endl;
88e00a8a 55 return this->fPt;}
f1d945a1 56inline Double_t AliFlowTrackSimple::Phi() const {
88e00a8a 57 return this->fPhi; }
58inline TBits AliFlowTrackSimple::GetFlowBits() const {
59 return this->fFlowBits; }
f1d945a1 60inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const {
88e00a8a 61 return this->fFlowBits.TestBitNumber(0); }
f1d945a1 62inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const {
88e00a8a 63 return this->fFlowBits.TestBitNumber(1); }
f1d945a1 64
65inline void AliFlowTrackSimple::SetEta(Double_t val) {
66 fEta = val; }
67inline void AliFlowTrackSimple::SetPt(Double_t val) {
68 fPt = val; }
69 // cout << "pt set to:" << fPt << endl;}
70inline void AliFlowTrackSimple::SetPhi(Double_t val) {
71 fPhi = val; }
72inline void AliFlowTrackSimple::SetForIntegratedFlow(Bool_t val) {
73 fFlowBits.SetBitNumber(0,val); }
74inline void AliFlowTrackSimple::SetForDifferentialFlow(Bool_t val) {
75 fFlowBits.SetBitNumber(1,val); }
76#endif
77