Skip to content
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

Add functions of crosstalk neighbour finding #331

Merged
merged 7 commits into from
Apr 18, 2024
Merged

Conversation

zwu0922
Copy link
Contributor

@zwu0922 zwu0922 commented Mar 21, 2024

BEGINRELEASENOTES

  • Add new functions related to the crosstalk neighbour finding for ALLEGRO ECAL barrel cells.

ENDRELEASENOTES

Added two more files "xtalk_k4geo.cpp" and "xtalk_k4geo.h". The new function in "xtalk_k4geo.cpp" can return the crosstalk neighbours and the corresponding crosstalk coefficients for a given cell of the ALLEGRO ECAL barrel with the theta-merged segmentation. No change is introduced to the existing part of the software package.

@andresailer andresailer changed the title Add funnctions of crosstalk neighbour finding Add functions of crosstalk neighbour finding Mar 21, 2024
@andresailer
Copy link
Contributor

Please nonetheless add something in BEGIN/ENDRELEASENOTES

@zwu0922
Copy link
Contributor Author

zwu0922 commented Mar 21, 2024

Please nonetheless add something in BEGIN/ENDRELEASENOTES

The change has been specified between BEGIN/ENDRELEASENOTES.

@kjvbrt
Copy link
Contributor

kjvbrt commented Apr 12, 2024

Local running of the test provided in HEP-FCC/k4RecCalorimeter#69 produced correct output file.

@BrieucF
Copy link
Contributor

BrieucF commented Apr 16, 2024

Since this is specific to the FCCSWGridModuleThetaMerged segmentation, I propose to go for less generic name, e.g. xtalk_k4geo --> xtalk_neighbors_moduleThetaMergedSegmentation or equivalent

@zwu0922
Copy link
Contributor Author

zwu0922 commented Apr 16, 2024

Since this is specific to the FCCSWGridModuleThetaMerged segmentation, I propose to go for less generic name, e.g. xtalk_k4geo --> xtalk_neighbors_moduleThetaMergedSegmentation or equivalent

Names of two files have been changed:
xtalk_k4geo.cpp --> xtalk_neighbors_moduleThetaMergedSegmentation.cpp
xtalk_k4geo.h --> xtalk_neighbors_moduleThetaMergedSegmentation.h

Copy link
Contributor

@BrieucF BrieucF left a comment

Choose a reason for hiding this comment

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

Sorry to trigger on this so late, but why not including these two new functionalities in DetUtils_k4geo?

@zwu0922
Copy link
Contributor Author

zwu0922 commented Apr 17, 2024

Sorry to trigger on this so late, but why not including these two new functionalities in DetUtils_k4geo?

Initially, I didn't want to change anything in the existing files for this development. However, it is true that including the two new functionalities in DetUtils_k4geo will not cause any conflict. Maybe I can merge "xtalk_neighbors_moduleThetaMergedSegmentation" into "DetUtils_k4geo" in the next round of development (to make the crosstalk coefficients configurable), if you don't object?

@BrieucF
Copy link
Contributor

BrieucF commented Apr 17, 2024

Initially, I didn't want to change anything in the existing files for this development. However, it is true that including the two new functionalities in DetUtils_k4geo will not cause any conflict. Maybe I can merge "xtalk_neighbors_moduleThetaMergedSegmentation" into "DetUtils_k4geo" in the next round of development (to make the crosstalk coefficients configurable), if you don't object?

Fine by me

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Hi @zwu0922
Thanks for your contribution, I have some proposals for changes.

  • I would prefer if we use proper words, so crosstalk instead of xtalk in publicly visible interfaces.
  • There is a namespace, so no need to prefix function names
  • the whole point of emplace_back is that it forwards to the constructor, so we don't have to construct the object ourselves https://godbolt.org/z/E6h1nPPM4
  • The list of includes could probably be cleaned up?
  • Some improvements in the code

@zwu0922
Copy link
Contributor Author

zwu0922 commented Apr 18, 2024

Hi @zwu0922 Thanks for your contribution, I have some proposals for changes.

* I would prefer if we use proper words, so crosstalk instead of xtalk in publicly visible interfaces.

* There is a namespace, so no need to prefix function names

* the whole point of emplace_back is that it forwards to the constructor, so we don't have to construct the object ourselves https://godbolt.org/z/E6h1nPPM4

* The list of includes could probably be cleaned up?

* Some improvements in the code

Thanks a lot for detailed suggestions. I have implemented all improvements and tested the code.

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Some clarifications for crosstalk coefficients.

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Thanks!

@andresailer andresailer enabled auto-merge (rebase) April 18, 2024 13:01
@andresailer andresailer merged commit d18d3f4 into key4hep:main Apr 18, 2024
8 of 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.

4 participants