- 
                Notifications
    You must be signed in to change notification settings 
- Fork 34
Fix missing photon reconstruction caused by charged track overlap in MatchClusters.cc #2154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy found issue(s) with the introduced code (1/1)
No Clang-Tidy warnings found so I assume my comments were addressed
This PR applies the include-what-you-use fixes as suggested by https://github.com/eic/EICrecon/actions/runs/18865551002. Please merge this PR into the branch `qunib-patch-1` to resolve failures in PR #2154. Auto-generated by [create-pull-request][1] [1]: https://github.com/peter-evans/create-pull-request Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR improves the cluster-to-MC association logic in MatchClusters by selecting the best MC particle per cluster based on association weight, instead of taking the first match found.
for more information, see https://pre-commit.ci
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR applies the include-what-you-use fixes as suggested by https://github.com/eic/EICrecon/actions/runs/18865551002. Please merge this PR into the branch `qunib-patch-1` to resolve failures in PR #2154. Auto-generated by [create-pull-request][1] [1]: https://github.com/peter-evans/create-pull-request Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| I compared this branch before/after with #2163: Not sure why the truthiness goes up (bad direction), since the changes look fine to me. It is possible (maybe likely) that a penalty of 1 for missing associations is not large enough. Just based on resolution alone, the E, px, py, pz would each contribute 1 in 67% (1 sigma) of the cases, so the effect of better reconstruction leading to better associations may actually lead to an increase in the truthiness since we are now more dominated by the energy and momentum resolution effects... | 
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 the cluster-to-MC association logic in MatchClusters by selecting the best MC particle per cluster based on association weight, instead of taking the first match found. 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.
This code change :
What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
Does this PR change default behavior?