Error("TKDInterpolatorBase::Eval()", Form("Interpolation failed and number of interpolation points (%d) Can not be increased further.", npoints));
result = 0.;
error = 1.E10;
+ // clean memory
+ delete [] dist; delete [] index;
return 0.;
} else npoints = npoints_new;
if(npoints > GetNTNodes()){
//_________________________________________________________________
TKDNodeInfo::TKDNodeInfo(const TKDNodeInfo &ref):
TObject((TObject&) ref)
- ,fNDim(fNDim)
+ ,fNDim(ref.fNDim)
,fData(NULL)
,fNpar(0)
,fNcov(0)
// 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];