Using Weighted fits
Often one needs to fit weighted dataset, etg. backrgonud-subtracted
or efficiency_corrected. It is just trivial in ostap:
dataset = ...
dsw = dataset.makeWeighted ( 'S_sw/eff' ) ##
model = ...
model.fitTo ( dsw , .... , sumw2 = True , ... ) ## <--- HERE