]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowVector.h
d5223d0542f8a4435f340af35b155af2b0e8989b
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowVector.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 ALIFLOWVECTOR_H
6 #define ALIFLOWVECTOR_H
7
8 #include "TVector2.h"
9
10 //********************************************************************
11 // AliFlowVector:                                                    *
12 // Class to hold the flow vector and multiplicity for flow analysis. *
13 // Author: A. Bilandzic (anteb@nikhef.nl)                            *
14 //********************************************************************
15
16 class AliFlowVector: public TVector2 {
17  public:
18   AliFlowVector();
19   AliFlowVector(const AliFlowVector& aVector);
20   AliFlowVector(const TVector2 &p, const Double_t m, const Double_t sumPow2w, const Double_t sumPow3w, const Double_t sumPow4w, const Double_t sumPow5w, const Double_t sumPow6w, const Double_t sumPow7w, const Double_t sumPow8w);
21   virtual ~AliFlowVector();
22
23   AliFlowVector& operator=(const AliFlowVector& aVector);
24
25   void SetMult(Double_t const mult) {this->fMult = mult;};
26   Double_t GetMult() const {return this->fMult;};
27   
28   void SetSumOfWeightsToPower2(Double_t const p2w) {this->fSumOfWeightsToPower2 = p2w;};
29   Double_t GetSumOfWeightsToPower2() const {return this->fSumOfWeightsToPower2;};
30
31   void SetSumOfWeightsToPower3(Double_t const p3w) {this->fSumOfWeightsToPower3 = p3w;};
32   Double_t GetSumOfWeightsToPower3() const {return this->fSumOfWeightsToPower3;};
33   
34   void SetSumOfWeightsToPower4(Double_t const p4w) {this->fSumOfWeightsToPower4 = p4w;};
35   Double_t GetSumOfWeightsToPower4() const {return this->fSumOfWeightsToPower4;};
36   
37   void SetSumOfWeightsToPower5(Double_t const p5w) {this->fSumOfWeightsToPower5 = p5w;};
38   Double_t GetSumOfWeightsToPower5() const {return this->fSumOfWeightsToPower5;};
39   
40   void SetSumOfWeightsToPower6(Double_t const p6w) {this->fSumOfWeightsToPower6 = p6w;};
41   Double_t GetSumOfWeightsToPower6() const {return this->fSumOfWeightsToPower6;};
42   
43   void SetSumOfWeightsToPower7(Double_t const p7w) {this->fSumOfWeightsToPower7 = p7w;};
44   Double_t GetSumOfWeightsToPower7() const {return this->fSumOfWeightsToPower7;};
45   
46   void SetSumOfWeightsToPower8(Double_t const p8w) {this->fSumOfWeightsToPower8 = p8w;};
47   Double_t GetSumOfWeightsToPower8() const {return this->fSumOfWeightsToPower8;};
48     
49  private:
50   Double_t fMult;                 // multiplicity = sum of weights = w_1 + w_2 + ... + w_n
51   Double_t fSumOfWeightsToPower2; // pow(w_1,2) + pow(w_2,2) + ... + pow(w_n,2)
52   Double_t fSumOfWeightsToPower3; // pow(w_1,3) + pow(w_2,3) + ... + pow(w_n,4)
53   Double_t fSumOfWeightsToPower4; // pow(w_1,4) + pow(w_2,4) + ... + pow(w_n,4)
54   Double_t fSumOfWeightsToPower5; // pow(w_1,5) + pow(w_2,5) + ... + pow(w_n,5)
55   Double_t fSumOfWeightsToPower6; // pow(w_1,6) + pow(w_2,6) + ... + pow(w_n,6)
56   Double_t fSumOfWeightsToPower7; // pow(w_1,7) + pow(w_2,7) + ... + pow(w_n,7)
57   Double_t fSumOfWeightsToPower8; // pow(w_1,8) + pow(w_2,8) + ... + pow(w_n,8)
58  
59   ClassDef(AliFlowVector, 1) 
60 };
61 #endif
62
63