Closed guitargeek closed 2 years ago
@cburgard, your help would be greatly appreciated here to ensure that the fixes are correctly implemented without breaking support for HistFactory models.
Hi @guitargeek,
It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.
Sincerely, :robot:
PR https://github.com/root-project/root/pull/8944 was a good first step to get the RooWorkspace to JSON converter work for typical histfactory models, but this simple example code showcases that are are still significant bugs.
These bugs need to be fixed in the release, such that we can promote the JSON converter as a new feature.
The JSON dump will look like this:
Here are the problems that need to be fixed:
mode
andmodel_ctl
are duplicate (both in pdf level and as children of the RooSimultaneous). They should only be in the top level, while the RooSimultaneous only has the names, e.g.:g1
andg2
are missing in the JSON.These problems need to be fixed and a unit test should be written that verifies that the model above can be successfully serialized and de-serialized.