Hallo, I have a similar problem to this post
I have a user defined fit function (written in a separate script), but included into the main script.
Now when i was writing and customising the scripts, I was just fitting one histogram and everything works perfectly fine (well as expected).
But I actually have 64 histograms, so now that I got it working for one I looped over all histograms … this is where the problems occur. Root gives funny fit lines to the histograms, sometimes drawing more than one fit on the same histogram.
It looks like some unclear memory problem due to the recursion. is there anyway to make root forget the last fit?
Be warned, if u ask for ‘the shortest possible runinning script’, you’ll receive 1data file, one fit script and one main script. Thats not meant to put you off Oh, and I’m not using TMinut.