]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
asignment operator fix
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 08:05:52 +0000 (08:05 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 08:05:52 +0000 (08:05 +0000)
PWG2/FLOW/AliFlowLYZEventPlane.cxx
PWG2/FLOW/AliFlowVector.cxx
PWG2/FLOW/AliFlowVector.h

index d09ace2641e9f1051ad19749ce3ce0b37bae20a6..2361d016a38b29ddcf66a262b857db75d366377d 100644 (file)
@@ -41,7 +41,6 @@ AliFlowLYZEventPlane::AliFlowLYZEventPlane():
   fSecondRunFile(0),
   fFirstRunFileName("noname.ESD"),
   fSecondRunFileName("noname.ESD"),
-  fQ(0),  
   fWR(0),            
   fPsi(0),
   fSecondReDtheta(0),
index 382adfb067f22b8be464b2e13887fbe6f95e385e..dffe3e666a56fa750ca44b48b11cbbc91c57b0dd 100644 (file)
 
 #include "AliFlowVector.h"
 
-//
-// AliFlowVector:
-// Class to hold the flowvector and corresponding multiplicity for flow analysis.
-// Author: A. Bilandzic (anteb@nikhef.nl)
-//
+//********************************************************************
+// AliFlowVector:                                                    *
+// Class to hold the flow vector and multiplicity for flow analysis. *
+// Author: A. Bilandzic (anteb@nikhef.nl)                            *
+//********************************************************************
 
 ClassImp(AliFlowVector)
 
@@ -33,7 +33,13 @@ AliFlowVector::AliFlowVector(const AliFlowVector& aVector):TVector2(aVector),
 fMult(aVector.fMult){}
 AliFlowVector::AliFlowVector(const TVector2 &v, Double_t m):TVector2(v),fMult(m){}
 AliFlowVector::~AliFlowVector(){}
-AliFlowVector& AliFlowVector::operator=(const AliFlowVector&)
+AliFlowVector& AliFlowVector::operator=(const AliFlowVector& aVector)
 {
-  return *this;
+   //assignement operator
+   fX=aVector.X();
+   fY=aVector.Y();
+   fMult=aVector.GetMult();
+   return *this;
 }
+
+
index 5011a57cd88bdd0a9b028509f93d10655f7727c8..b932b3380d02bbefbf39cfe62094eae7734674c1 100644 (file)
@@ -7,10 +7,11 @@
 
 #include "TVector2.h"
 
-
-// AliFlowVector:
-// Class to hold the flowvector and corresponding multiplicity for flow analysis.
-// Author: A. Bilandzic (anteb@nikhef.nl)
+//********************************************************************
+// AliFlowVector:                                                    *
+// Class to hold the flow vector and multiplicity for flow analysis. *
+// Author: A. Bilandzic (anteb@nikhef.nl)                            *
+//********************************************************************
 
 class AliFlowVector: public TVector2 {
  public:
@@ -19,7 +20,7 @@ class AliFlowVector: public TVector2 {
   AliFlowVector(const TVector2 &p, Double_t m);
   virtual ~AliFlowVector();
 
-  AliFlowVector& operator=(const AliFlowVector&);
+  AliFlowVector& operator=(const AliFlowVector& aVector);
 
   void SetMult(Double_t mult)       {this->fMult = mult;} ;
   Double_t GetMult() const          {return this -> fMult;} ;
@@ -31,3 +32,4 @@ class AliFlowVector: public TVector2 {
 };
 #endif
 
+