[math] Fix rotations and boosts of GenVector coordinate systems #24109
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 174 lines diff across 2 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.309
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #24109"
general
weight: 0.35
guitargeek
This Pull request:
Changes or fixes:
A rotation or Lorentz transformation applied directly to a GenVector coordinate system returns a wrong result. It rebuilds the result with the
(x, y, z)or(x, y, z, t)constructor of the argument's type, and the non-Cartesian coordinate systems take their own coordinates there:This affects every rotation class with
Polar3D,Cylindrical3DandCylindricalEta3D, and every boost andLorentzRotationwithPxPyPzM4D,PtEtaPhiE4DandPtEtaPhiM4D. Those six are now set throughSetXYZ()orSetPxPyPzE(). Every other type is still built with its constructor, so foreign vector types keep their behaviour, which was the concern raised in the issue. The new tests inrotationApplication.cxxandtestBoost.cxxapply each class to the raw coordinate systems and fail without the change.@hageboeck, the issue is assigned to you. The experimental GenVectorX copy has the same pattern and is not changed here.
Checklist:
This PR fixes #19635
Claude Code (claude-opus-5-5) implemented the fix and the tests, and Codex (gpt-6.1-sol) reviewed them.