I’ve been trying to make an interactive macro that loops over a large number of histograms and accepts keyboard input to set the gaussian fit ranges for each one, displaying them both before and after the fitting process.
When I use scanf() to read in the fit range numbers, the canvas remains, but the histograms don’t display until I have exited the loop. This, obviously, screws up my fit checking.
How does one read floating point numbers from the keyboard in a ROOT macro in a manner which allows hitograms still to display proprerly?
Thanks very much!