I’m pretty new to Fit/RooFit, and I need some help to get started with my current project.
My goal is to find the best-fit parameters to weigh histograms into the desired shape. This means I have three TH1s (mc1, mc2, data); I want to give mc1 and mc2 different weights to make them fit the shape of data (sth like par*mc1+par*mc2=data maybe by minimizing chi2 between the weighted MC and Data). Since par+par !=1, TFractionFitter does not work for me. Is there any way I can achieve this through Fit/RooFit? Could someone give me some hints?