Multiple conditional product pdf

Hi,

I would like to know if I can make a product pdf that is conditional on multiple variables in Roofit. Mathematically it would looks like this.

P(x,y,d) = Q(d|(x,y)) x R(x,y)

R is a multi-dimesional with independent x, y variables. Some combination of x and y feeds into Q to generate the other piece of pdf with variable d.

Can Roofit generate such pdfs? If so, could you please tell me how to compose this? I can find many examples in tutorials and web for single variable, but none for multiple variables.

Thank you very much.

  • Chang

Hi,
Have you tried to use RooProdPdf, by using the Conditional command:

RooProdPdf * P = new RooProdPdf(ā€œPā€,ā€œPā€, R, RooFIt::Conditional(Q, d) );

Lorenzo

Thank you for the reply. Conditional seems to work.

To make the problem a bit twisted, can I used a RooArgSet in the place of d? i.e. Q is normalized for multiple observables.