]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STAT/TKDNodeInfo.cxx
Fix for bug#78353. Fill the header tree after the mc header is set.
[u/mrichter/AliRoot.git] / STAT / TKDNodeInfo.cxx
index 915a688183b1d159cd91ed49ba14688d307f6d4f..1a1fa7494f0d5f523ed9744c8afa3fe9e3b7d8d2 100644 (file)
@@ -46,7 +46,7 @@ TKDNodeInfo::TKDNodeInfo(Int_t dim):
 //_________________________________________________________________
 TKDNodeInfo::TKDNodeInfo(const TKDNodeInfo &ref):
   TObject((TObject&) ref)
-  ,fNDim(fNDim)
+  ,fNDim(ref.fNDim)
   ,fData(NULL)
   ,fNpar(0)
   ,fNcov(0)
@@ -56,6 +56,7 @@ TKDNodeInfo::TKDNodeInfo(const TKDNodeInfo &ref):
   // Copy constructor
   Build(fNDim/3);
 
+  fData = new Float_t[fNDim];
   memcpy(fData, ref.fData, fNDim*sizeof(Float_t));
   fVal[0] = ref.fVal[0];
   fVal[1] = ref.fVal[1];