How to convert 1D histogram with errors correcly filled in each bin and do a ML fit in RooFit?

Dear experts,

I have a data file with four columns (M, dM, Y, dY). I wanted to plot M vs Y with their corresponding errors (dM, dY) and fit it with a signal and background shape using roofit . I

can do this using TGraph but want to know if I can convert to a 1D histogram with errors correctly filled in each bin and do a ML fit in roofit. Any help will be appreciated.

The data file is attached below:

Thanksdata.txt (1.3 KB)

Hello,

here is a big collection of tutorials:
https://root.cern/doc/master/group__tutorial__roofit.html

For you, rf101 and 102 should be an interesting start, as they show how to import data from histograms and ascii files.

1 Like

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