[RF][HS3] Parameters with a fixed value as domain axes (HS3 #131) #24099
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 563 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.379
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #24099"
general
weight: 0.35
guitargeek
This Pull request:
Writes and reads parameters that only take a single value, e.g. a named constant like the Z mass, as a fixed domain axis with that value (HS3 #131). It replaces the implicit rule that a parameter without a domain is constant.
Background
Since #22283 (July 2026, not released), RooFit has written a named
RooConstVaras a parameter without a domain, and read every parameter without a domain back as aRooConstVar(config().importNoDomainParametersAsRooConstVars). HS3 #131 originally proposed to make this the standard: a parameter not listed in any domain is constant. In the review, the HS3 maintainers preferred an explicit construction, which is what #131 was merged with: a parameter that only takes one value says so in its domain with a fixed axis, and leaving out a domain doesn't make a parameter constant. Since no ROOT release has the implicit rule, no compatibility with it is kept.Changes or fixes:
| What | How |
|---|---|
| Export | A named
RooConstVaris written as a fixed domain axis{"name": ..., "value": <value>}in the default domain, and no longer to the parameter points. ConstantRooRealVars are unchanged: a range in the domain,"const": truein the parameter points. LiteralRooConstVars are still written as numbers. || Import | A fixed axis gives a
RooConstVar, whichever domain has it. It needs no entry in a parameter point. || Errors | The axis also has
min,max,nbins,edgesorcategories; the value is not a number; two domains give the parameter different single values, or one a single value and another a range; a parameter point gives the parameter a different value. The same value in a parameter point is accepted, and"const": falsestays the same as no"const". || Parameters without domain | Read as
RooRealVar, as before #22283: constant with"const": true, otherwise free, with a warning that HS3 requires a domain or"const": true.config().importNoDomainParametersAsRooConstVarsis removed. || Older files | ROOT versions before #22283 marked named
RooConstVars with the attributeis_const_varinmisc.ROOT_internal. Such parameters are read asRooConstVaragain (#22283 had dropped this). |Tests
FixedDomainAxis: import asRooConstVar, export and stable round trip, the same value in a parameter point, every error above, a parameter without domain (constant, or free with a warning), and the legacy attribute.RooGaussianConstVarSigmaExport,RooConstVarCollectionProxyExportandConstRooRealVarStaysDistinctFromRooConstVarexpect the fixed axis instead of a missing domain.ParametersOnlyInParameterPointsexpects parameters without domain and without"const": trueto be free, with the warning, instead of constant.importNoDomainParametersAsRooConstVarsoff now run with the default behaviour.Behaviour changes users may notice
RooConstVars appear as fixed domain axes instead of"const": trueentries in the parameter points.RooRealVar, not as aRooConstVar. Documents written by ROOT master since #22283 rely on the implicit rule; theirRooConstVars come back as constantRooRealVars.RooJSONFactoryWSTool::config().importNoDomainParametersAsRooConstVarsno longer exists.Checklist:
Tests run (Linux, Ubuntu 26.04, GCC 15.2, RelWithDebInfo,
-Droofit=ON -Dtesting=ON):testRooFitHS3113 → 114 tests (1 new),testHistFactory60, all passing. clang-format clean.AI assistance: Claude Code (claude-opus-5-5) implemented the changes, the tests and this description under review of the author. The commit carries
Assisted-by: claude-code:claude-opus-5-5.🤖 Generated with Claude Code