Hello,
I’m trying to export the convolution of an RooHistPdf and a RooGaussian to a TF1.
If I did:
TF1* fit_func = conv_pdf- > asTF(
*function_range, RooArgList( *g_mean, *g_sigma ), *function_range );
the I obtain a TF1 function with the seemingly correct shape, but the normalsation is not right.
For example, the distribution should have 100 events, but the integral of the TF1 function is 1.
How do I fix it? Thank you very much.
I also have the full code attached.
conv_fit.C (2.7 KB)
Best,
Hoa.