Projection using ProjWData for 2D fit (individual component)

I am doing simple 2-dimensional fit (mass vs MassB). Fit is working fine (Pad I & II)

However, I am facing trouble when I am trying to cut in one dimension (massB > 5.27) and trying to plot individual component in mass. I am using ProjWData() after reducing the data. For total PDF, ProjWData() works fine, however for individual component, result is not fine (Pad III). I also tried binned projection, but it is worse.

I think somewhere, I am doing some silly mistake.

I am attaching code. It runs without any file and take less time. Any kind of help will be highly appreciated.

Thank you in advance…

Best Wishes
test.C (6.05 KB)