RooKeys on a weighted sample of events

Hi all,
is there a way to construct a RooKeysPdf weighting the events according to a given criterion? As far as I understand when constructing a RooKeysPdf all the events used have the same weight.

Thanks,
Valerio

Hi,

The class supports weighted data sets. You need to pass a RooDataSet which is weighted (i.e. returns a RooDataSet::weight() different than 1 ).

Best Regards

Lorenzo