]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowVector.cxx
fixing coding viol
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowVector.cxx
CommitLineData
f1d945a1 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
19f888a6 20//********************************************************************
21// AliFlowVector: *
22// Class to hold the flow vector and multiplicity for flow analysis. *
23// Author: A. Bilandzic (anteb@nikhef.nl) *
24//********************************************************************
f1d945a1 25
26ClassImp(AliFlowVector)
27
28//________________________________________________________________________
29
ae733b3b 30AliFlowVector::AliFlowVector():
cbbaf54a 31 fMult(0)
32{
ae733b3b 33 // default contructor
cbbaf54a 34}
35
36//________________________________________________________________________
868536da 37
ae733b3b 38AliFlowVector::AliFlowVector(const AliFlowVector& aVector):
cbbaf54a 39 TVector2(aVector),
40 fMult(aVector.fMult)
41{
ae733b3b 42 // copy constructor
cbbaf54a 43}
44
45 //________________________________________________________________________
46
47AliFlowVector::AliFlowVector(const TVector2 &v, const Double_t m):
48 TVector2(v),
49 fMult(m)
50{
ae733b3b 51 // custom constructor
cbbaf54a 52}
53
54//________________________________________________________________________
55
ae733b3b 56AliFlowVector::~AliFlowVector()
57{
cbbaf54a 58 // default constructor
ae733b3b 59}
cbbaf54a 60
61//________________________________________________________________________
62
19f888a6 63AliFlowVector& AliFlowVector::operator=(const AliFlowVector& aVector)
868536da 64{
cbbaf54a 65 // assignement operator
66 fX = aVector.X();
67 fY = aVector.Y();
68 fMult = aVector.GetMult();
69
70 return *this;
868536da 71}
19f888a6 72
cbbaf54a 73//________________________________________________________________________
74
75AliFlowVector& AliFlowVector::operator+=(const AliFlowVector& aVector)
76{
77 // addition operator
78 fX += aVector.X();
79 fY += aVector.Y();
80 fMult += aVector.GetMult();
81
82 return *this;
83}
19f888a6 84