Skip to content

Conversation

@qunib
Copy link

@qunib qunib commented Oct 28, 2025

Previously, some photons that overlapped with charged tracks were being incorrectly discarded, leading to reduced reconstruction efficiency. This change adjusts the matching logic to retain valid photons without affecting charged particle suppression.

Briefly, what does this PR introduce?

This PR improves cluster-to-MC association logic by choosing the highest-weight match per cluster.
Default behavior is slightly changed for clusters with multiple MC associations;
otherwise, results are identical. No API or function signature changes are required for users.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

Does this PR change default behavior?

qunib and others added 2 commits October 27, 2025 19:29
Previously, some photons that overlapped with charged tracks were being incorrectly discarded, leading to reduced reconstruction efficiency. This change adjusts the matching logic to retain valid photons without affecting charged particle suppression.
@wdconinc
Copy link
Contributor

@qunib This can likely be closed. Can you copy the more detailed description from here into #2154, update the title there to be more descriptive, merge the iwyu fixes in #2155, and keep an eye on #2159 (i.e. subscribe) so you know when it is merged?

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.

2 participants