Give more than one weight to RooDataSet

Dear all,

I’m trying to create a new RooDataSet which has several weights, I tried something like:

RooDataSet *ds = new RooDataSet(Form("%s_RooDataSet", obsname.c_str()), “dataset”,
objets, RooFit::Import(*tcut),
RooFit::Cut(cuts.c_str()),
RooFit::WeightVar(v_weights[1].c_str()),RooFit::WeightVar(v_weights[0].c_str()));

but it seems that it is using only the last weight that I’m providing… could someone tell me how to give the 2 weights to the RooDataSet?

Thanks a lot!

Hi,
I don’t think this is possible. By the way, why you need to have more than one weight per event, it is not clear to me what they statistically represent

Lorenzo