-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
Please nonetheless add something in BEGIN/ENDRELEASENOTES |
The change has been specified between BEGIN/ENDRELEASENOTES. |
Local running of the test provided in HEP-FCC/k4RecCalorimeter#69 produced correct output file. |
Since this is specific to the |
Names of two files have been changed: |
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.
Sorry to trigger on this so late, but why not including these two new functionalities in DetUtils_k4geo
?
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
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 |
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.
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
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
Thanks a lot for detailed suggestions. I have implemented all improvements and tested the code. |
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.
Some clarifications for crosstalk coefficients.
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp
Outdated
Show resolved
Hide resolved
detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h
Outdated
Show resolved
Hide resolved
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.
Thanks!
BEGINRELEASENOTES
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.