Skip to content

[codex] Fix Guan cosmic muon normalization#151

Merged
lobis merged 1 commit into
masterfrom
codex/fix-guan-muon-2pi
May 18, 2026
Merged

[codex] Fix Guan cosmic muon normalization#151
lobis merged 1 commit into
masterfrom
codex/fix-guan-muon-2pi

Conversation

@lobis
Copy link
Copy Markdown
Member

@lobis lobis commented May 18, 2026

lobis Ok: 3 Powered by Pull Request Badge

Summary

This removes an extra azimuth factor from the analytic Guan cosmic-muon source formula used by CosmicMuons.

The formula already ends with the correct solid-angle conversion and azimuth integration,

2*pi*sin(theta) dtheta

so the leading 2*pi multiplied the generated muon rate by another factor of about 2*pi.

Impact

The generated muon kinematics are unchanged, but the REST source normalization and equivalent simulated time metadata are corrected. Existing productions made with the previous formula have equivalent times that are too small by approximately 2*pi, and should be rescaled if used for rate estimates.

Validation

  • Rebuilt and installed the patched REST/Geant4 library on naf-iaxo.
  • Confirmed the installed libRestGeant4.so contains the corrected formula without the leading 2*pi.
  • Cross-checked the integrated Guan flux against the expected sea-level value: 1.72e-2 cm^-2 s^-1, or about 1.03 cm^-2 min^-1.

@lobis lobis marked this pull request as ready for review May 18, 2026 17:28
@lobis lobis merged commit 1d5326c into master May 18, 2026
49 checks passed
@lobis lobis deleted the codex/fix-guan-muon-2pi branch May 18, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant