TH1F: "half-quiet" mode and print output of fit in file

Hi everybody,

I have got a question about the quiet mode of TH1F. Is it possible to use a kind of half-quiet mode, in the sense that there is only something printed if the fit failed?

Furthermore, how can I print the output of a fit in a file instead of directly on my screen? My function currently fits 180 times, so if the “half-quiet” mode is not possible it would be nice if I could take some time to read the output.

Thanks in advance! :slight_smile:


HI Rosa,

look at the doc of TH1::Fit e.g. this one:

and especially “Access to the fit result” and option “S”