]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Clear method modified to fix the problem with reading Tree.
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Jan 2001 09:33:56 +0000 (09:33 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Jan 2001 09:33:56 +0000 (09:33 +0000)
CONTAINERS/AliMemArray.cxx

index 0b55757509003cfb2512b0d34b37cea614c031e4..bf11e23730954e63101a89dd509444d144907d97 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.1  2000/11/01 16:01:26  kowal2
+Classes for handling the new hits structures
+
 */
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -244,7 +247,8 @@ void AliMemArray::Clear(Option_t *)
     return;
   }
   if (fCont){
-    memset(fCont, 0, fSize*fObjectSize);
+    //    memset(fCont, 0, fSize*fObjectSize);
+    //MI change - to have the same as in TClonesArray
     fSize = 0;
   }
 }
@@ -297,7 +301,8 @@ void AliMemArray::Resize(UInt_t  n)
   if (n>fCapacity) Reserve(n);   //reserve automaticaly space if sie >capacity
   if (fSize>n){ 
     DTORBuffer(Unchecked1DAt(n),fSize-n);
-    memset(&((char*)fCont)[n*fObjectSize], 0, (fSize-n)*fObjectSize);
+    //memset(&((char*)fCont)[n*fObjectSize], 0, (fSize-n)*fObjectSize);
+    //MI change - to have the same as in TClonesArray
   }
   if (fSize<n)    CTORBuffer(Unchecked1DAt(fSize),n-fSize);     
   fSize = n;
@@ -330,7 +335,8 @@ void AliMemArray::Clear2D()
   //clear memory space occupied by the array  - doesn't call DTOR
   Int_t  nbuff = (fCapacity/fBufferSize);
   if ( (fCapacity%fBufferSize)!=0) nbuff++;
-  for (Int_t  i=0;i<nbuff;i++) memset(GetRow(i), 0, fSize*fObjectSize);
+  // for (Int_t  i=0;i<nbuff;i++) memset(GetRow(i), 0, fSize*fObjectSize);
+  //MI change - to have the same as in TClonesArray
   fSize = 0;  
 }