1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 #ifndef ALIFLOWVECTOR_H
6 #define ALIFLOWVECTOR_H
10 //********************************************************************
12 // Class to hold the flow vector and multiplicity for flow analysis. *
13 // Author: A. Bilandzic (anteb@nikhef.nl) *
14 //********************************************************************
16 class AliFlowVector: public TVector2 {
19 AliFlowVector(const AliFlowVector& aVector);
20 AliFlowVector(const TVector2 &p, const Double_t m);
21 virtual ~AliFlowVector();
23 AliFlowVector& operator=(const AliFlowVector& aVector);
24 AliFlowVector& operator+=(const AliFlowVector& aVector);
26 Bool_t IsFolder() const {return kTRUE;};
28 void SetMult(Double_t const mult) {this->fMult = mult;};
29 Double_t GetMult() const {return this->fMult;};
32 Double_t fMult; // multiplicity = sum of weights = w_1 + w_2 + ... + w_n
34 ClassDef(AliFlowVector, 1)
37 inline AliFlowVector operator+(const AliFlowVector& aVector,const AliFlowVector& bVector) {
38 AliFlowVector cVector;
39 Double_t x = aVector.X() + bVector.X();
40 Double_t y = aVector.Y() + bVector.Y();
41 Double_t mult = aVector.GetMult() + bVector.GetMult();
43 cVector.SetMult(mult);