My problem is I have three histograms that each have a distinct shape and when added together give a histogram that I would measure in the lab. Is there a function in Roofit that can convert a histogram to a pdf such that I can use it to fit other histograms? I would like to do this so I can convert my three base histograms into pdfs and then use those to fit my experiment results.
Hi,
I hope I’ve understood correctly what your problem is.
You must first convert your TH1 into a RooDataHist and then use a RooHistPdf. The result will be the pdf you’re looking for.