I want to do a template fitting using roofit. I have a TH1D data histogram and three MC template histograms of the same variable. I want to fit the data using these three templates and get the fractions in the data. I could not find any tutorial showing this?
It will be very helpful if some can point me to such an example.