Fitting TH1F with a tabulated function

Hi rooters,

I have a question.

Is it possible to fit a TH1 object with a user-defined function F, that is NOT possible to describe with a formula?

The result of my fit should give the best factor to normalize F to the histogram.

Thanks in advance.

Tina

You can use C functions to return the value you need for a given set of input parameters.
See this example:
https://root.cern.ch/doc/master/classTF1.html#F4

You can implement a method to lookup the value in your table and return it with a C function.

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