The RooHistConstraint implements constraint terms for a binned PDF with statistical uncertainties. Following the Barlow-Beeston method, it adds Poisson constraints for each bin that constrain the statistical uncertainty of the template histogram.
It can therefore be used to estimate the Monte Carlo uncertainty of a fit.