diff --git a/roofit/hs3/src/JSONFactories_RooFitCore.cxx b/roofit/hs3/src/JSONFactories_RooFitCore.cxx index f0c5e2db8e88a..2896239c97295 100644 --- a/roofit/hs3/src/JSONFactories_RooFitCore.cxx +++ b/roofit/hs3/src/JSONFactories_RooFitCore.cxx @@ -1146,7 +1146,11 @@ bool importWrapperPdf(RooJSONFactoryWSTool *tool, const JSONNode &node) bool selfNormalized = false; - if (auto sn = node.find("selfNormalized")) + auto sn = node.find("self_normalized"); + // ROOT previously exported this key without an underscore. + if (!sn) + sn = node.find("selfnormalized"); + if (sn) selfNormalized = sn->val_bool(); tool->wsEmplace(name, *func, selfNormalized); @@ -1169,7 +1173,7 @@ bool exportWrapperPdf(RooJSONFactoryWSTool *, const RooAbsArg *arg, JSONNode &no node["function"] << funcProxy->absArg()->GetName(); if (pdf->selfNormalized()) - node["selfnormalized"] << true; + node["self_normalized"] << true; return true; }