-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: Bin adjustment for rectangluar bounds #705
feat: Bin adjustment for rectangluar bounds #705
Conversation
…ment.hpp and modified BinUtility adjustBinUtility(const BinUtility& bu, const Surface& surface) accordingly. This is to make material mapping on renctangle layers possible. Modified the envelope from 1 mm to 0 mm in the TGeoLayerBuilder.hpp (otherwise I get a Radialbounds error when executing ActsExampleGeometryTGeo).
…ty& bu, const Surface& surface) for rectangular bounds.
Codecov Report
@@ Coverage Diff @@
## master #705 +/- ##
==========================================
- Coverage 49.02% 49.01% -0.01%
==========================================
Files 325 325
Lines 16547 16574 +27
Branches 7727 7744 +17
==========================================
+ Hits 8112 8124 +12
- Misses 3012 3019 +7
- Partials 5423 5431 +8
Continue to review full report at Codecov.
|
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 for the very nice PR, have have a couple of minor comments.
Two more thing :
- You should run the CI/check_format script in you acts directory then recommit the change, this is needed to pass the format CI check. For that you might need to download clang-format
- It would be nice if you could write a quick unitTest to test the BinAdjustment. Basically just add a test to Tests/UnitTests/Core/Utilities/BinAdjustmentTests.cpp (please ask if you need help)
also split the if that checks for a plane surface and rectangular bounds in two.
… into rectangular-binning
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.
That's excellent work, approving this one.
I added a function adjustBinUtility() for rectangle bounds to BinAdjustment.hpp and modified BinUtility adjustBinUtility(const BinUtility& bu, const Surface& surface) accordingly. This is to make material mapping on rectangular layers possible.
I also had to modify the envelope from 1 mm to 0 mm in the TGeoLayerBuilder.hpp (otherwise I get a Radialbounds error when executing ActsExampleGeometryTGeo) (This could however be specific to my geometry).