HI,
the problem was in the macro that I have attached in the post
The global chi2 function needs to be modified to not force the gradient calculation of all parameters. See the changes in the new macro which I attach to this post
Best Regards
Lorenzo
combinedFit2.C (5.99 KB)