Skip to content

Conversation

AkshayaVijay
Copy link
Contributor

@AkshayaVijay AkshayaVijay commented Aug 5, 2025

Briefly, what does this PR introduce?

Added Layer Modes to the helper function to group hits within the same layer for ImagingTopoCluster

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?

@AkshayaVijay AkshayaVijay requested a review from wdconinc August 5, 2025 16:18
@github-actions github-actions bot added topic: calorimetry relates to calorimetry topic: far-forward Far forward reconstruction topic: barrel topic: forward labels Aug 5, 2025
@AkshayaVijay
Copy link
Contributor Author

In this PR, a new phiz layermode is introduced in the Imaging Topological Clustering Algorithm to group hits both within the same layer and across different layers.

  • Currently, hits in the same layer are grouped based on their local x and y positions. The new phiz mode converts the azimuthal (phi) separation between hits into a tangential distance (in millimeters) by projecting hit positions relative to the average phi of the two hits.
  • In same-layer phiz mode, the algorithm checks whether two hits are sufficiently close in the phi direction (converted to distance) and in z, instead of using the local xand y positions. In different-layer phiz mode, the same logic is applied across layers within the neighbourLayersRange.

The impact of these changes is studied using a 2-photon simulation, and the corresponding plots are attached.
Layermode_xy_phiz_comparison.pdf

Copy link
Contributor

@wdconinc wdconinc left a comment

Choose a reason for hiding this comment

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

To avoid initialization order errors (https://github.com/eic/EICrecon/actions/runs/17133996414/job/48605273777?pr=1999#step:7:624) and to avoid having to sometimes have diff first and sometimes same, this reorders the config ordering so the algorithms will always have same first, then diff next.

May need changes in FHCAL or ZDC, I didn't verify that.

veprbl
veprbl previously approved these changes Aug 28, 2025
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

wdconinc added a commit that referenced this pull request Aug 28, 2025
…wyu) (#2056)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17303800492.
Please merge this PR into the branch
`Test-Layermodes-within-same-layers-for-ImagingTopo-Clusters`
to resolve failures in PR #1999.

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>
AkshayaVijay and others added 18 commits August 29, 2025 13:55
…wyu) (#2056)

This PR applies the include-what-you-use fixes as suggested by
https://github.com/eic/EICrecon/actions/runs/17303800492.
Please merge this PR into the branch
`Test-Layermodes-within-same-layers-for-ImagingTopo-Clusters`
to resolve failures in PR #1999.

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>
@wdconinc wdconinc force-pushed the Test-Layermodes-within-same-layers-for-ImagingTopo-Clusters branch from b5e8f4f to 9959c45 Compare August 29, 2025 18:55
@wdconinc
Copy link
Contributor

Rebased for #2057.

@wdconinc wdconinc added this pull request to the merge queue Aug 29, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2025
#2015)

### Briefly, what does this PR introduce?
This PR modifies the unscoped enum `ESigmaMode` to a scoped enum, and
avoids the implicit integer conversion by correcting the `operator<<`
signature. Before this fix, the output was `0` or `1` (since the
incorrectly-signatured `operator<<` is not used); after this fix, the
output is `abs` or `rel`.

The scoping of the enum adds a layer of safety since the symbol `abs`
could previously shadow the standard function `std::abs`.

This aligns with the enabled clang-tidy check
`cppcoreguidelines-use-enum-class`,
https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/use-enum-class.html.

### What kind of change does this PR introduce?
- [x] Bug fix (issue:
#1999 (comment), but
fails to compile
#1999 (comment))
- [ ] 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?
No.

### Does this PR change default behavior?
No.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2025
@wdconinc wdconinc added this pull request to the merge queue Aug 29, 2025
Merged via the queue into main with commit 8ef14f7 Aug 29, 2025
126 of 129 checks passed
@wdconinc wdconinc deleted the Test-Layermodes-within-same-layers-for-ImagingTopo-Clusters branch August 29, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants