Rebin Rooplot from fit result

I obtained a rooplot object plotting fit result from CMS higgscombine routine.
However, the binning is way too dense. Is there any simple way to rebin the RooPlot object,
or the RooHist under it.

Thanks a lot

  • Kak

Hi,
If you have access to the data and pdf objects drawn in the plot, the easiest is to create a new RooPlot object with less bins, by calling RooRealVar::setBins(nbins) on the RooRealVar object representing mt_res

Lorenzo

I figured out that if you set setBins on the RooRealVar object before running the limit setting tool, you plot is going to be binned accordingly, so there would be no need to re-bin the RooPlot object.

Kak

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.