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

ref: Add centroid approximation for (annulus) shape #590

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

niermann999
Copy link
Contributor

@niermann999 niermann999 commented Nov 14, 2023

Move the calculation of the surface center position into the shapes and add an approximation for the annulus shape. Also uses the annulus center now in a few places and does some renaming for clarification in the helix intersectors.

@niermann999 niermann999 added bug Something isn't working refactor refactoring the current codes priority: high high priority labels Nov 14, 2023
@niermann999 niermann999 force-pushed the fix-surface-center branch 3 times, most recently from 3379f75 to d13463e Compare November 14, 2023 18:28
@niermann999
Copy link
Contributor Author

Not sure returning the global center position from a shape is the right approach, since the shape itself does everything in its local coordinate system and it is the surface that should do the transformation to global coordinates, but this way I can return the translation from the transform and don't have to transform point2{0., 0.} to global coordinates.

@niermann999 niermann999 mentioned this pull request Nov 15, 2023
Copy link
Collaborator

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is only for svg - Not sure if it is worth putting this function in core library

core/include/detray/masks/masks.hpp Outdated Show resolved Hide resolved
@niermann999
Copy link
Contributor Author

I think this is only for svg - Not sure if it is worth putting this function in core library

It has been in the core library before (but incorrect for the annulus shape). The main motivation for this PR was to use it in the Newton intersector, but I think now that it would also work without it

@niermann999 niermann999 force-pushed the fix-surface-center branch 4 times, most recently from a55c7cf to 6cd7b96 Compare November 16, 2023 13:49
@niermann999 niermann999 changed the title ref: Add center approximation for annulus shape ref: Add centroid approximation for (annulus) shape Nov 16, 2023
@niermann999 niermann999 force-pushed the fix-surface-center branch 3 times, most recently from a21b11b to d3492bf Compare November 16, 2023 15:18
@niermann999 niermann999 added priority: low Low priority and removed priority: high high priority labels Nov 16, 2023
@niermann999 niermann999 merged commit 6966041 into acts-project:main Nov 16, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: low Low priority refactor refactoring the current codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants