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

fix: DiscBounds binningValue incorrect for binPhi #852

Merged

Conversation

paulgessinger
Copy link
Member

@paulgessinger paulgessinger commented Jun 23, 2021

DiscBounds has special logic for binR, where it asks its DiscBounds for a binning value. This logic is not invoked for binPhi, which I believe it should. Added a unit test to assert this behavior.

Also I believe binning value should be in global coordinates here. Previously this worked if local-to-global was only a translation along z, because the center z position was explicitly added. I think generically it should be global, therefore I changed it to apply the transform.

/cc @asalzburger @Corentin-Allaire

`DiscBounds` has special logic for `binR`, where it asks its `DiscBounds` for a binning value. This logic is not invoked for `binPhi`, which I believe it should. Added a unit test to assert this behavior.
@paulgessinger paulgessinger added this to the next milestone Jun 23, 2021
@paulgessinger paulgessinger linked an issue Jun 23, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jun 23, 2021

Codecov Report

Merging #852 (6e3fde4) into main (54dcb61) will increase coverage by 0.07%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #852      +/-   ##
==========================================
+ Coverage   48.46%   48.53%   +0.07%     
==========================================
  Files         329      329              
  Lines       16974    16974              
  Branches     8028     8025       -3     
==========================================
+ Hits         8227     8239      +12     
+ Misses       3092     3083       -9     
+ Partials     5655     5652       -3     
Impacted Files Coverage Δ
Core/src/Surfaces/CylinderSurface.cpp 37.09% <50.00%> (+2.52%) ⬆️
Core/src/Surfaces/DiscSurface.cpp 31.31% <60.00%> (+0.70%) ⬆️
Core/include/Acts/Surfaces/AnnulusBounds.hpp 71.05% <0.00%> (+15.78%) ⬆️

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 54dcb61...6e3fde4. Read the comment docs.

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.

Looks good to me !

@paulgessinger paulgessinger merged commit c7ad7e8 into acts-project:main Jun 24, 2021
@paulgessinger paulgessinger modified the milestones: next, v0.9.1 Jun 24, 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.

Layer binning is broken for AnnulusBounds
2 participants