I am fitting a function to a histogram and looking at how the fit changes as I vary some parameters of the data.
I have a for loop, such that in every iteration the data parameters change and I fit my function.
The fit is failing for some iterations, though not always subsequent, so I wanted to be able to look at the actual graphs from every iteration to visually see what is wrong…
I was wondering whether there is a way of declaring
TCanvas * c[i] = new TCanvas(“c[i]”, “i”, etc…)
with i going from (say) 1 to 25, and then, in the for loop, including something like
name_of_my_fit -> Draw()
in order to output a graph from each iteration.
Thanks for your help!