2D binned fit

Dear Expert,

I have two 1D histograms and want to do a 2D binned fit using RooDataHist.

I tried to do like below:
RooDataHist * dataxy = new RooDataHist("dataxy","dataxy", RooArgList(mD0, mD0pi), h1);

But this is taking only one histogram. How do I identify these two different variables for 2D fit as now this takes only one histogram?

Can you please suggest it or there is any different way to do it?


Hi, I hope this helps you, with the information on your histograms you can fill a TH2, and then you need to pass the TH2 histogram to the RooDataHist.

1 Like

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