]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliSplineFit.cxx
Cleanup method, persisten data members (Haavard)
[u/mrichter/AliRoot.git] / STEER / AliSplineFit.cxx
index 9e200df179d9c9c14d20f601c5a58bba5e681b09..a7d0c2df068844e43b311b61cbc1e6bc2a8948df 100644 (file)
@@ -13,8 +13,6 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id$ */
-
 //-------------------------------------------------------------------------
 //                Implementation of the AliSplineFit class
 //   The class performs a spline fit on an incoming TGraph. The graph is 
@@ -91,6 +89,7 @@ AliSplineFit::AliSplineFit(const AliSplineFit& source) :
     fX[i]  = source.fX[i];
     fY0[i] = source.fY0[i];
     fY1[i] = source.fY1[i];
+    fChi2I[i] = source.fChi2I[i];
   }
 }
 AliSplineFit& AliSplineFit::operator=(const AliSplineFit& source){
@@ -1001,3 +1000,15 @@ void AliSplineFit::Test(Int_t npoints, Int_t ntracks, Float_t snoise){
   }
   delete pcstream;    
 }
+
+void AliSplineFit::Cleanup(){
+ //
+ // deletes extra information to reduce amount of information stored on the data
+ // base
+    
+     delete fGraph;  fGraph=0;
+     delete fParams; fParams=0;
+     delete fCovars; fCovars=0;
+     delete [] fIndex; fIndex=0;
+     delete [] fChi2I; fChi2I=0;
+}