Skip to content

Add sphere support ECoMug#623

Merged
ManuelHu merged 2 commits intolegend-exp:mainfrom
tdixon97:muons
Mar 10, 2026
Merged

Add sphere support ECoMug#623
ManuelHu merged 2 commits intolegend-exp:mainfrom
tdixon97:muons

Conversation

@tdixon97
Copy link
Copy Markdown
Contributor

We currently have almost no tests for this code, should we atleast check it runs ?

Copilot AI review requested due to automatic review settings February 13, 2026 22:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds hemisphere support to the cosmic muons generator (EcoMug). The generator previously only supported plane-based muon generation, and now also supports hemisphere-based generation centered at the origin.

Changes:

  • Added sphere/hemisphere generation mode to the EcoMug cosmic muon generator
  • Moved sphere position angle configuration (theta/phi) to be specific to sphere mode rather than global
  • Added new parameter SkyHSphereRadius to configure the hemisphere radius
  • Updated documentation to clarify supported generation modes

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/RMGGeneratorCosmicMuons.cc Implemented sphere support with case statement, moved sphere-specific angle settings to sphere case, added new SkyHSphereRadius parameter
include/RMGGeneratorCosmicMuons.hh Added fSkyHSphereRadius member variable with default value and brief documentation comment
docs/manual/generators.md Added documentation about supported generation modes (plane/hemisphere) and usage notes for EcoMug

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/manual/generators.md Outdated
Comment thread src/RMGGeneratorCosmicMuons.cc Outdated
Comment thread include/RMGGeneratorCosmicMuons.hh Outdated
Copy link
Copy Markdown
Contributor

@ManuelHu ManuelHu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also needs a regenerate of the command docs with make remage-doc-dump

Comment thread docs/manual/generators.md Outdated
Comment thread include/RMGGeneratorCosmicMuons.hh Outdated
@ManuelHu ManuelHu merged commit 36e9e23 into legend-exp:main Mar 10, 2026
9 checks passed
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.

3 participants