]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCTrackHitsV2.cxx
no comment
[u/mrichter/AliRoot.git] / TPC / AliTPCTrackHitsV2.cxx
index b2e2c04575a257ab3ac2695af77d840f18f01f7f..1c832c059ceb9ccb0df4ed4df0dd655c588445ff 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.4.6.1  2002/07/26 12:12:55  alibrary
-Updating VirtualMC
-
-Revision 1.5  2002/07/25 16:56:52  hristov
-fSize set to zero in Clear(). The size of the array is checked in First() (M.Ivanov)
-
-Revision 1.4  2002/03/01 10:19:06  hristov
-Additional protection (M.Ivanov)
+/* $Id$ */
 
-Revision 1.1  2002/01/21 17:14:21  kowal2
-New track hits using root containers.
-
-*/
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
 //  Time Projection Chamber  track hits object                                //
@@ -71,7 +58,7 @@ New track hits using root containers.
 #include "TClonesArray.h"    
 #include "AliTPC.h"
 
-#include <iostream.h>
+#include <Riostream.h>
 
 
 
@@ -612,7 +599,7 @@ void AliTPCTrackHitsV2::AddVolume(Int_t volume)
   //
   //add volumes to tthe list of volumes
   Int_t * volumes = new Int_t[fNVolumes+1];
-  if (fVolumes) memcpy(volumes,fVolumes,(fNVolumes+1)*sizeof(Int_t));
+  if (fVolumes) memcpy(volumes,fVolumes,(fNVolumes)*sizeof(Int_t));
   volumes[fNVolumes]=volume;
   fNVolumes++;
   if (fVolumes) delete []fVolumes;