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
Support for spherical op.det. in geometry (issue #25003) #11
Conversation
Also added geo::OpDetGet::isSphere() and a lower level shape type interface. This should solve Redmine issue #25003.
A new Pull Request was created by @PetrilloAtWork (Gianluca Petrillo) for develop. It involves the following packages: larcorealg @LArSoft/level-1-managers, @LArSoft/level-2-managers can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
The code-checks are being triggered in jenkins. |
Pull request #11 was updated. @LArSoft/level-1-managers, @LArSoft/level-2-managers can you please check and sign again. |
+code-checks |
@PetrilloAtWork I had a go using this for SBND with the opDets in OpFastScintillation.cxx (~line 251): |
I should have fixed the bug. Even if I have tested this change with |
@PetrilloAtWork I've repeated my tests in SBND and this appears to be working properly now, at least with bars and spheres. Re Kyle's comment - in the case of spheres isBar() is indeed correctly returning false in my tests. |
Pull request #11 was updated. @LArSoft/level-1-managers, @LArSoft/level-2-managers can you please check and sign again. |
The code-checks are being triggered in jenkins. |
+code-checks |
trigger build |
The tests are being triggered in jenkins. |
The code-checks are being triggered in jenkins. |
+code-checks |
trigger build |
The tests are being triggered in jenkins. |
Err... ok 🙄 I request a C++ expert review of this part of the code (@knoepfel?) with particular attention to Thanks, Lynn, for reporting it to me. P.S. For SBND folks: you may be already aware of that, anyway |
+LArSoft tests OK on slf7 for c7:prof |
+LArSoft tests OK on slf7 for e19:prof |
-icarus tests failed on slf7 for e19:prof |
+sbnd tests OK on slf7 for e19:prof |
-uboone tests warning on slf7 for e19:prof |
@PetrilloAtWork, I agree the warning emitted by Clang is over-cautious. Regardless, your commit does address the issue. On a side note: the fact that the user has to ask what shape is represented by an |
approve |
This pull request is fully signed and it will be merged to develop and built in the next LArSoft release after it passes the integration tests. |
This should solve issue #25003.
I tested it on ICARUS code by running the geometry test (which is not expected to exercise the change) and checking the geometry dump.
I would like SBND to check this commit as well, since SBND has both bar- and hemisphere-shaped photodetectors.