feat: type the Pythia8 boundary with canonical quantities#72
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughChangesUnit-aware Pythia integration
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2952d72 to
e9ec269
Compare
c607c48 to
53ed804
Compare
53ed804 to
8a63cb3
Compare
e9ec269 to
52e61e0
Compare
8a63cb3 to
1f6f65f
Compare
Pythia8's native units (GeV, mm, mm/c production time) become explicit: beam energies are ship::Energy, lifetime thresholds and tProd are mm/c quantities, and the mm/c -> ns conversion derives from the exact SI definition of c instead of a hand-typed 299.792458. Fixed-target and Pythia8 source configuration is read via get_quantity, so each parameter's unit is defined in exactly one place. The only numeric change is the tProd conversion (division by 299.792458 becomes multiplication by the c-derived factor): at most 1 ulp on ~20% of values. Validation histograms of a 200-event pythia8_only run are bitwise identical to an origin/main build.
52e61e0 to
cba7262
Compare
Physics Metrics Comparison1 configuration(s) have differences
Configurations with Differences
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Stacked on #71. Beam energies, lifetime thresholds and production times become typed quantities; the hardcoded 299.792458 is replaced by the exact c-derived conversion (differences ≤1 ulp; 200-event validation run bitwise identical).
Summary by CodeRabbit