1 /*************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #define AliFlowVector_cxx
18 #include "AliFlowVector.h"
20 //********************************************************************
22 // Class to hold the flow vector and multiplicity for flow analysis. *
23 // Author: A. Bilandzic (anteb@nikhef.nl) *
24 //********************************************************************
26 ClassImp(AliFlowVector)
28 //________________________________________________________________________
30 AliFlowVector::AliFlowVector():
36 //________________________________________________________________________
38 AliFlowVector::AliFlowVector(const AliFlowVector& aVector):
45 //________________________________________________________________________
47 AliFlowVector::AliFlowVector(const TVector2 &v, const Double_t m):
54 //________________________________________________________________________
56 AliFlowVector::~AliFlowVector()
58 // default constructor
61 //________________________________________________________________________
63 AliFlowVector& AliFlowVector::operator=(const AliFlowVector& aVector)
65 // assignement operator
66 if (this==&aVector) return *this;
69 fMult = aVector.GetMult();
74 //________________________________________________________________________
76 AliFlowVector& AliFlowVector::operator+=(const AliFlowVector& aVector)
81 fMult += aVector.GetMult();