RooDataSet weight

Hi all,

I’m trying to understand how to apply weights to RooDataSet events. I see that RooDataSet::addEvent has a weight and weightErr parameter, but when using them I see no effect - neither on the fit nor on the data plot. Is there something else I need to be aware of?

Many thanks!

For an example on how to properly use and apply weights you can look at $ROOTSYS/tutorials/roofit/rf403_weightedevts.C

– Gregory