Looking at the result and the many errors printed, I would say the fit is not really successful, but fore more details I’ll let @moneta comment on this.
If you just comment the lines: //total.plotOn(xyframe,Components(johnsonx),LineStyle(kDotted),LineColor(kRed)); //total.plotOn(xyframe,Components(expy),LineStyle(kDashed),LineColor(kCyan)); //total.plotOn(xyframe,Components(bkg_mass),LineStyle(kDashed),LineColor(kGreen + 2),Name(“bkg_mass”));
then I think the errors will be lesser. The lines start at 173
Yes, I am also working on it, I think I have managed to improve the situation a bit although I am still not sure. Will you please try this macro? multibody_2D_model_data.C (6.8 KB) .
It looks like, my model fits the data, but no mater what I do, I am not able to get:
From MIGRAD: CONVERGED & Error Matrix:ACCURATE, HESSE:OK & Error Matrix:ACCURATE