2-D Roofit of a given plot

I have two branches(say D_0 and D_S) in my root file. I have plotted individually the two variables. I have plotted two variables one along x-axis and another along y-axis. Now I want to fit it. Can anybody please provide me the macro for fitting the attached plot.

Thanks in Advance

Once you have drawn the two branches you have a 2D histogram called htemp or you have defined yourself the 2D histogram. In any case a 2D histogram is available. The following example shows how to fit 2D histograms:

To me, the plot in the first post looks like an unbinned 2-d scatter-plot (a TGraph), coming from some tree->Draw("D_S:D_0"); command.

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