Likelihood minimisation with a conditional model/pdf

I believe this problem can be solved by leveraging the RooSimPdfBuilder class with multiple prototype pdfs

See here:

S