]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowTrackSimple.h
gain set to 1 for all ch
[u/mrichter/AliRoot.git] / PWG2 / FLOW / 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
22 Double_t Eta() const;
23 Double_t Pt() const;
24 Double_t Phi() const;
88e00a8a 25 TBits GetFlowBits() const;
26 Bool_t UseForIntegratedFlow() const;
27 Bool_t UseForDifferentialFlow() const;
f1d945a1 28
29 void SetEta(Double_t eta);
30 void SetPt(Double_t pt);
31 void SetPhi(Double_t phi);
32 void SetForIntegratedFlow(Bool_t b);
33 void SetForDifferentialFlow(Bool_t b);
34
35 private:
36 Double_t fEta; // eta
37 Double_t fPt; // pt
38 Double_t fPhi; // phi
39 TBits fFlowBits; // bits to set if track is selected
40
41
42 ClassDef(AliFlowTrackSimple,0) // macro for rootcint
43
44};
45
46inline Double_t AliFlowTrackSimple::Eta() const {
88e00a8a 47 return this->fEta; }
f1d945a1 48inline Double_t AliFlowTrackSimple::Pt() const {
49 // cout << "Returned pt:" << fPt << endl;
88e00a8a 50 return this->fPt;}
f1d945a1 51inline Double_t AliFlowTrackSimple::Phi() const {
88e00a8a 52 return this->fPhi; }
53inline TBits AliFlowTrackSimple::GetFlowBits() const {
54 return this->fFlowBits; }
f1d945a1 55inline Bool_t AliFlowTrackSimple::UseForIntegratedFlow() const {
88e00a8a 56 return this->fFlowBits.TestBitNumber(0); }
f1d945a1 57inline Bool_t AliFlowTrackSimple::UseForDifferentialFlow() const {
88e00a8a 58 return this->fFlowBits.TestBitNumber(1); }
f1d945a1 59
60inline void AliFlowTrackSimple::SetEta(Double_t val) {
61 fEta = val; }
62inline void AliFlowTrackSimple::SetPt(Double_t val) {
63 fPt = val; }
64 // cout << "pt set to:" << fPt << endl;}
65inline void AliFlowTrackSimple::SetPhi(Double_t val) {
66 fPhi = val; }
67inline void AliFlowTrackSimple::SetForIntegratedFlow(Bool_t val) {
68 fFlowBits.SetBitNumber(0,val); }
69inline void AliFlowTrackSimple::SetForDifferentialFlow(Bool_t val) {
70 fFlowBits.SetBitNumber(1,val); }
71#endif
72