Analysing 2D histograms from TTree


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi,

I have multiple TTrees from which I create TH2F histograms. I would like to fit linear functions to the histograms. Is there a way of finding the r-squared value for a fit?

Please have a look at the documentation for TH1::Fit(), as that also explains how to fit other kinds of histograms. There are also examples in the forum, and a tutorial you can use as example. I hope this is enough. Cheers,

1 Like

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