]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMillePedeRecord.cxx
OADB classes and root files for the physics selection
[u/mrichter/AliRoot.git] / STEER / AliMillePedeRecord.cxx
index 0f8e688ee017598822e3475df99c4d39a7c5d77e..7a8d586c6e70cb594941a714e97f4ec6e9b7d0df 100644 (file)
@@ -28,7 +28,7 @@ fSize(0),fNGroups(0),fRunID(0),fGroupID(0),fIndex(0),fValue(0),fWeight(1) {SetUn
 
 //_____________________________________________________________________________________________
 AliMillePedeRecord::AliMillePedeRecord(const AliMillePedeRecord& src) : 
-  TObject(src),fSize(src.fSize),fNGroups(src.fNGroups),fGroupID(0),fRunID(src.fRunID),fIndex(0),fValue(0),fWeight(src.fWeight)
+  TObject(src),fSize(src.fSize),fNGroups(src.fNGroups),fRunID(src.fRunID),fGroupID(0),fIndex(0),fValue(0),fWeight(src.fWeight)
 {
   fIndex = new Int_t[GetDtBufferSize()];
   memcpy(fIndex,src.fIndex,fSize*sizeof(Int_t));
@@ -108,12 +108,12 @@ void AliMillePedeRecord::ExpandDtBuffer(Int_t bfsize)
   bfsize = TMath::Max(bfsize,GetDtBufferSize());
   Int_t *tmpI = new Int_t[bfsize];
   memcpy(tmpI,fIndex, fSize*sizeof(Int_t));
-  delete fIndex;
+  delete [] fIndex;
   fIndex = tmpI;
   //
   Double_t *tmpD = new Double_t[bfsize];
   memcpy(tmpD,fValue, fSize*sizeof(Double_t));
-  delete fValue;
+  delete [] fValue;
   fValue = tmpD;
   //
   SetDtBufferSize(bfsize);
@@ -126,7 +126,7 @@ void AliMillePedeRecord::ExpandGrBuffer(Int_t bfsize)
   bfsize = TMath::Max(bfsize,GetGrBufferSize());
   UShort_t *tmpI = new UShort_t[bfsize];
   memcpy(tmpI,fGroupID, fNGroups*sizeof(UShort_t));
-  delete[] fGroupID;
+  delete [] fGroupID;
   fGroupID = tmpI;
   for (int i=fNGroups;i<bfsize;i++) fGroupID[i] = 0;
   //