Negative chi squared value and need help with fit parameters

roomodel.cpp (1.7 KB)

Here I am fitting my model to the tree data in the root file.
the current fit looks fine (not yet the best fit) but my fit gets spoiled as soon as I change the range for sigma even a little. And also the chi squared value i am getting is -1???
also How to print fit parameters on the frame(plot)??



I’m sure @jonas can help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.