Wrong normalization fro projection range

Hello,
I’m working with the 3D fit in ROOFit framework.
I’ve got an issue when I was trying to plot the projection on one of the fit variables in give range on other variables. It seems that in this case the pdfs aren’t normalized properly. Here is the example of my code:
model_x.yvar.setRange ( ‘phi_range’ , 1.01 , 1.02 )
data.plotOn(frame,ROOT.RooFit.CutRange(‘phi_range’))
model_x.plotOn(frame,ROOT.RooFit.ProjectionRange(‘phi_range’))
The plot with results in attachments.
Please, could you give a hint of what might be wrong?projection_issue.pdf (23.2 KB)

Hello,

did you check the console? I remember that there is a limitation when plotting a subset of the data. Does it say anything about that?

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