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():
32 fSumOfWeightsToPower2(0),
33 fSumOfWeightsToPower3(0),
34 fSumOfWeightsToPower4(0),
35 fSumOfWeightsToPower5(0),
36 fSumOfWeightsToPower6(0),
37 fSumOfWeightsToPower7(0),
38 fSumOfWeightsToPower8(0)
43 AliFlowVector::AliFlowVector(const AliFlowVector& aVector):
46 fSumOfWeightsToPower2(aVector.fSumOfWeightsToPower2),
47 fSumOfWeightsToPower3(aVector.fSumOfWeightsToPower3),
48 fSumOfWeightsToPower4(aVector.fSumOfWeightsToPower4),
49 fSumOfWeightsToPower5(aVector.fSumOfWeightsToPower5),
50 fSumOfWeightsToPower6(aVector.fSumOfWeightsToPower6),
51 fSumOfWeightsToPower7(aVector.fSumOfWeightsToPower7),
52 fSumOfWeightsToPower8(aVector.fSumOfWeightsToPower8)
57 AliFlowVector::AliFlowVector(const TVector2 &v, 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):
60 fSumOfWeightsToPower2(sumPow2w),
61 fSumOfWeightsToPower3(sumPow3w),
62 fSumOfWeightsToPower4(sumPow4w),
63 fSumOfWeightsToPower5(sumPow5w),
64 fSumOfWeightsToPower6(sumPow6w),
65 fSumOfWeightsToPower7(sumPow7w),
66 fSumOfWeightsToPower8(sumPow8w)
71 AliFlowVector::~AliFlowVector()
73 // default constructor
75 AliFlowVector& AliFlowVector::operator=(const AliFlowVector& aVector)
77 // assignement operator
80 fMult = aVector.GetMult();
81 fSumOfWeightsToPower2 = aVector.GetSumOfWeightsToPower2();
82 fSumOfWeightsToPower3 = aVector.GetSumOfWeightsToPower3();
83 fSumOfWeightsToPower4 = aVector.GetSumOfWeightsToPower4();
84 fSumOfWeightsToPower5 = aVector.GetSumOfWeightsToPower5();
85 fSumOfWeightsToPower6 = aVector.GetSumOfWeightsToPower6();
86 fSumOfWeightsToPower7 = aVector.GetSumOfWeightsToPower7();
87 fSumOfWeightsToPower8 = aVector.GetSumOfWeightsToPower8();