RooNDKeys in yaml

Dear experts , is there a way I can cleanly encompass RooNDKeysPDF in a yml file

      - RooNDKeysPdf::totpdf([mod_mbc, deltaE], rholist[1.7, 1.7])

      - RooBifurGauss::totpdf(CSO_BDT_prime, BB_csBg_mu[2, -3, 3], BB_csBg_sigmaL[2, 1e-3, 5], BB_csBg_sigmaR[1, 1e-3, 5])

Since the above definition doesn’t work

This is how I used to work it in a notebook format:

kde_dataset = R.RooDataSet.from_pandas(data, {ws.var("mod_mbc"), ws.var("deltae")})
kde_pdf = R.RooNDKeysPdf("bbbar_mbcde_kde", "bbbar_mbcde_kde", R.RooArgSet(ws.var("mod_mbc"), ws.var("deltae")), kde_dataset, R.RooArgList(1.7,1.7))
ws.Import(kde_pdf, R.RooFit.RecycleConflictNodes())

Thanks!

Hello,

I will ask @jonas to have a look here. There is no direct yaml support as for as I know.

1 Like

Yes I am aware of it. I am just not sure how to use a list as an argument here with the dataset.

      - RooBifurGauss::totpdf(CSO_BDT_prime, BB_csBg_mu[2, -3, 3], BB_csBg_sigmaL[2, 1e-3, 5], BB_csBg_sigmaR[1, 1e-3, 5])

As you can see in the above example, I have only one variable but for a list it is difficult