X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliSplineFit.cxx;fp=STEER%2FAliSplineFit.cxx;h=244be85b6b44041ddf2cb13d4a98586fd3de68c2;hb=6ec4e3e360923ab859a916f7eabb498dd2c0aa68;hp=b0d02c68935e7fe4fdff74457e9c0d64bedc07b7;hpb=ce43afbe869563fe17fae207681eb691908bb009;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliSplineFit.cxx b/STEER/AliSplineFit.cxx index b0d02c68935..244be85b6b4 100644 --- a/STEER/AliSplineFit.cxx +++ b/STEER/AliSplineFit.cxx @@ -632,6 +632,7 @@ void AliSplineFit::SplineFit(Int_t nder){ Int_t nknots = fN; if (nknots < 2 ) return; Int_t npoints = graph->GetN(); + if (npoints < fMinPoints ) return; // // // spline fit @@ -1022,7 +1023,7 @@ void AliSplineFit::Cleanup(){ // deletes extra information to reduce amount of information stored on the data // base - delete fGraph; fGraph=0; + // delete fGraph; fGraph=0; // Don't delete fGraph -- input parameter delete fParams; fParams=0; delete fCovars; fCovars=0; delete [] fIndex; fIndex=0; @@ -1035,13 +1036,13 @@ void AliSplineFit::CopyGraph() { // enter graph points directly to fit parameters // (to bee used when too few points are available) // - fN = fGraph->GetN(); + fN = fGraph->GetN(); fX = new Double_t[fN]; fY0 = new Double_t[fN]; fY1 = new Double_t[fN]; for (Int_t i=0; iGetX()[i]; - fY0[i] = fGraph->GetY()[i]; + fY0[i] = fGraph->GetY()[i]; fY1[i] = 0; } }