Although I don’t hope to get any answer given my previous experience, here I report something that I expected to find in RooMCStudy and it does not provide.
I have RooKeysPdf for my genModel and the fitModel is a complicated RooExtendPdf.
I want to check the pull for the normalization after fit and the code crashes (the normalization paramete and its error are retrieved easily).
The whole thing is not too easy because mean2 and mean in this example are physically different parameters. It’s not really clear that you have to subtract one from the other to get a pull distribution.
I used simple heuristics to make it work, though:
If the parameter used to generate is different from the one used to fit, it will find the position of the fit parameter in the input set, and subtract the parameter at the same position in the set of generator parameters.
That should work most of the time, but it may fail for complicated models. Anyway, it’s warning users when it is about to do this.
The crash has also been fixed.
Edit:
When the patch is merged into ROOT master, you can test it the following day by obtaining a nightly build: https://root.cern/nightlies