Implemented better handling of RooHistPdf