]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/Ali4VectorObj.cxx
Fix of the memory leak from L.Aphecetche
[u/mrichter/AliRoot.git] / RALICE / Ali4VectorObj.cxx
index b7fec056be1301151aa8d93b6899d85fc4b051dd..7b27c45bcd0d4ea30ccc5ce8e85099f1bf1df83f 100644 (file)
@@ -13,9 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
+// $Id$
 
 ///////////////////////////////////////////////////////////////////////////
 // Class Ali4VectorObj
@@ -49,27 +47,28 @@ $Log$
 // Ali4VectorObj vec2;
 // vec2.Load(sub);
 //
-// vec1.Info();
-// vec2.Info();
+// vec1.Data();
+// vec2.Data();
 //
 //--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
 ///////////////////////////////////////////////////////////////////////////
 
 #include "Ali4VectorObj.h"
  
 ClassImp(Ali4VectorObj) // Class implementation to enable ROOT I/O
  
-Ali4VectorObj::Ali4VectorObj()
+Ali4VectorObj::Ali4VectorObj() : TObject(),Ali4Vector()
 {
+// Default constructor
 // Creation of an Ali4VectorObj object and initialisation of parameters.
 // All attributes initialised to 0.
 }
 ///////////////////////////////////////////////////////////////////////////
-Ali4VectorObj::Ali4VectorObj(Ali4Vector& q)
+Ali4VectorObj::Ali4VectorObj(Ali4Vector& q) : TObject(),Ali4Vector(q)
 {
 // Creation of an Ali3VectorObj object and initialisation of parameters.
-// All attributes are initialised to the values of the input Ali3Vector.
- Load(q);
+// All attributes are initialised to the values of the input Ali4Vector.
 }
 ///////////////////////////////////////////////////////////////////////////
 Ali4VectorObj::~Ali4VectorObj()
@@ -77,17 +76,8 @@ Ali4VectorObj::~Ali4VectorObj()
 // Destructor to delete dynamically allocated memory.
 }
 ///////////////////////////////////////////////////////////////////////////
-void Ali4VectorObj::Load(Ali4Vector& q)
+Ali4VectorObj::Ali4VectorObj(Ali4VectorObj& v) : TObject(v),Ali4Vector(v)
 {
-// Load all attributes of the input Ali4Vector into this Ali4VectorObj object.
- Int_t temp1=q.GetScalarFlag();
- Double_t temp2=q.GetResultError();
- Double_t a[4];
- q.GetVector(a,"sph");
- SetVector(a,"sph");
- q.GetErrors(a,"car");
- SetErrors(a,"car");
- fScalar=temp1;
- fDresult=temp2;
+// Copy constructor
 }
 ///////////////////////////////////////////////////////////////////////////