Can anyone tell me how you plot several categories at once using Slice()? For example,
I have a
and I want to plot the PDF for tagcat==Kaon1 and tagcat==Kaon2 but NOT tagcat==Lepton.
How can I do that?
Just thought that I would add that the following code did not work. The pdf is not being projected onto the data properly:
RooDataSet* testDS //dataset read in - details omitted;
RooSimultaneous* mes_simPdf //the PDF - details omitted;
RooPlot* mesframe_all = mes.frame(Bins(50),Title(“NonLepton”));
RooDataSet* mescutds = (RooDataSet*)testDS->reduce(Cut(“tagcat!=63”));