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

feat: Bin adjustment for rectangluar bounds #705

Merged
merged 8 commits into from
Feb 10, 2021

Conversation

bernies-bytes
Copy link
Contributor

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).

Bernadette Kolbinger added 2 commits February 9, 2021 11:09
…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.
@bernies-bytes bernies-bytes marked this pull request as ready for review February 9, 2021 11:54
@codecov
Copy link

codecov bot commented Feb 9, 2021

Codecov Report

Merging #705 (0a2ebd9) into master (b1fc4e7) will decrease coverage by 0.00%.
The diff coverage is 44.44%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
Core/include/Acts/Utilities/BinAdjustment.hpp 56.97% <44.44%> (-5.74%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1fc4e7...1da37b1. Read the comment docs.

@Corentin-Allaire Corentin-Allaire added this to the next milestone Feb 9, 2021
Copy link
Contributor

@Corentin-Allaire Corentin-Allaire left a 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)

Core/include/Acts/Utilities/BinAdjustment.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@asalzburger asalzburger left a 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.

@asalzburger asalzburger changed the title refactor: Bin adjustment for rectangluar bounds feat: Bin adjustment for rectangluar bounds Feb 9, 2021
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.

None yet

4 participants