Problem with fit in range with RooBernstein

Hello, I have problem fitting in sidebands with RooBernstein. I don’t have the problem with other pdf (e.g. exponential).

What I do it:

  • generate in the full range
  • fit in the full range and plot: ok
  • plot in the sidebands: ok
  • fit and plot in the sidebands: bad result

I attach a script to reproduce the (1.4 KB)

I attach the result with exponential and RooBernstein

Am I doing anything wrong? Similar: RooFit Trouble With Drawing Fits of Subranges

@StephanH could you please take a look? Thanks!

seems this bug is known since 2014:

1 Like

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