]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowVector.cxx
corrections for single particle distributions in Q cumulants{2}
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowVector.cxx
1 /*************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
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 **************************************************************************/
15
16 #define AliFlowVector_cxx
17
18 #include "AliFlowVector.h"
19
20 //********************************************************************
21 // AliFlowVector:                                                    *
22 // Class to hold the flow vector and multiplicity for flow analysis. *
23 // Author: A. Bilandzic (anteb@nikhef.nl)                            *
24 //********************************************************************
25
26 ClassImp(AliFlowVector)
27
28 //________________________________________________________________________
29
30 AliFlowVector::AliFlowVector():
31  fMult(0),
32  fSumOfWeightsToPower2(0),
33  fSumOfWeightsToPower3(0),
34  fSumOfWeightsToPower4(0),
35  fSumOfWeightsToPower5(0),
36  fSumOfWeightsToPower6(0),
37  fSumOfWeightsToPower7(0),
38  fSumOfWeightsToPower8(0) 
39  {
40   // default contructor
41  }
42
43 AliFlowVector::AliFlowVector(const AliFlowVector& aVector):
44  TVector2(aVector),
45  fMult(aVector.fMult),
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)
53  {
54   // copy constructor
55  }
56  
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):
58  TVector2(v),
59  fMult(m),
60  fSumOfWeightsToPower2(sumPow2w),
61  fSumOfWeightsToPower3(sumPow3w),
62  fSumOfWeightsToPower4(sumPow4w),
63  fSumOfWeightsToPower5(sumPow5w),
64  fSumOfWeightsToPower6(sumPow6w),
65  fSumOfWeightsToPower7(sumPow7w),
66  fSumOfWeightsToPower8(sumPow8w) 
67  {
68   // custom constructor
69  }
70  
71 AliFlowVector::~AliFlowVector()
72 {
73  // default constructor 
74 }
75 AliFlowVector& AliFlowVector::operator=(const AliFlowVector& aVector)
76 {
77  // assignement operator
78  fX = aVector.X();
79  fY = aVector.Y();
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();
88  
89  return *this;
90 }
91
92