I am trying to do a 2D fit, Here’s the complete folder that I am using. 2dfit_forum.tar.gz (1.1 MB)
The problem is that, the fit converges when I use the RooExponential fit the “COMBINATORIAL” part, then the code runs fine but when when I try to use a first order polynomial using RooPolyVar, I get the error message:
/kk_2dfit.C:156:66: error: no matching function for call to ‘RooProdPdf::RooProdPdf(const char [9], const char [9], RooPolyVar&, myRooPolBG&)’
RooProdPdf comb_bkg(“comb_bkg”, “comb_bkg”, comb_mKK, bkg_mD0pi);