Cached normalization not saved in RooWorkspace


I have a RooAddPdf of RooProdPdf functions, where one of the products contains an analytic function of a set of observables set = (a,b,c,d,e,f,g) times three RooHistPdfs:

addpdf(a,b,c,d,e,f,g) = analytic_pdf(a,b,c,d,e,f,g) * hist_pdf_2D(c,d) * hist_pdf_2D(e,f) * hist_pdf_1D(g)

If I call getVal(set), and then import the pdf into a RooWorkspace, cached normalization (which is actually computed!) is not saved.

This does not happen if I do not use the RooHistPdf’s (i.e. if I rewrite analytic_pdf in such a way to contain handwritten 1D parametrizations of distributions for c, d, e, f, g).

Any hints? I am using ROOT 5.34/03 (tags/v5-34-03@46856, Oct 27 2012, 23:19:27 on linuxx8664gcc)

P.s.: by “analytic pdf” I just mean a RooAbsPdf (written using the template coming from RooClassFactory) implementing the evaluate() method.

any news on this?
you can find a short example of the issue in

actually I think it affects all RooProdPdf’s…