Product of two pdf that share the same independent variables

Dear experts,
I would like to make the product of two pdf:

Therefore I woud like the pdf:
B(x,y) = A(x,y) * E(x,y)

How can I make such a product ?

I was thinking to use:
RooAbsPdf* B = new RooProdPdf(“Product”,”A*E",RooArgSet(A,B));

Is this correct ?
I’m asking because of course I’m having troubles to make such a pdf to work.
Please, pay attention that A(x,y) and E(x,y) share the same independent variable, namely x and y !

Many thanks for your support.

  • Mauro.