In few cases RooAbsPdf::generate() fails to create correct distributions

Hi,
Yes I think I have seen that before, and if I remember it was a problem with the number of cells (nCell3D) or number of sample (nSample) of the Foam generator.
Have you tried to increase the number of cells (nCell3D) or number of samples (nSample) for the Foram generator ?

See A bug ?, extract a 2-D histogram based on Roofit

Lorenzo