Slice in plotOn() picking only the last category

Hi again,

I think I solved this, using RooSimPDFBuilder. I replaced the line

RooSimultaneous* model = rspb.build(*config,&data);
RooArgSet deps(*error,*cat);
RooSimultaneous* model = rspb.build(*config,deps);

Now, the output looks like this:


Plotting the components isn’t working yet, but that should be easier to fix now.

On an unrelated note, ProjWData doesn’t seem to do anything. I replaced

ProjWData(*cat,data)

everywhere with

ProjWData(RooArgSet(),data)

and the output is unchanged. Removing ProjWData completely, on the other hand, effectively makes the normalization of the pdf null (it doesn’t show up at all). Consequently, I have absolutely no idea what purpose ProjWData is serving.