RooDataSet and cut

Hi all.

Can I create a dataset with a cut in a different variable than the one I use for my dataset?

Something like

RooDataSet *invariant_mass = new RooDataSet(“data”,“data”, tree, invariant_mass, “Lxy>0.2”);

Because I’m getting loads of errors. When I do

RooDataSet *invariant_mass = new RooDataSet(“data”,“data”, tree, invariant_mass, “invariant_mass>2”);

is ok…

Many thanks,
Stefanos

Hi Stephanos,

Do you still have this problem? If you do I recommend that you repost in the Math and Stats forum with a bit more information (version of ROOT, error message, etc.).

Cheers,
Philippe.

No it’s alright…

Thanks.