-
Notifications
You must be signed in to change notification settings - Fork 173
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: Add possibility to rotate the trapezoid bounds #2583
Conversation
📊: Physics performance monitoring for f8f2ca9physmon summary
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2583 +/- ##
==========================================
+ Coverage 48.86% 48.87% +0.01%
==========================================
Files 493 493
Lines 29058 29074 +16
Branches 13798 13805 +7
==========================================
+ Hits 14200 14211 +11
Misses 4962 4962
- Partials 9896 9901 +5 ☔ View full report in Codecov by Sentry. |
There are some compilation failures here. |
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.
Can you add a PR description @junggjo9 ?
Also I wondered if the rotation of the bounds could also be absorbed in the rotation of the surface / detector element? Maybe I am missing something.
If I'm thinking about this the right way, the bounding box is in surface coordinates, not in bound coordinates, so would have to be rotated as well to capture the underlying trapezoid shape. |
I thought in ACTS surface coordinates == bound coordinates? |
rotate vertices get bounding box from convex polygon remove rotation matrix move constructor to cpp
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.
Looks good to me. Clever I idea reusing the ConvexPolygon bounds since it's not perf critical in the constructor.
move more functions to source rotate bounds helper function
🔴 Athena integration test results [a606f8a]🔴 Some tests have failed!Please investigate the pipeline! |
Adds the possibility to rotate trapezoid bounds along the center. This is modeled through an additional bounds value `eRotationAngle` which is defaulted to `0` obtaining the original, unrotated trapezoid. Summary - `inside` rotates the incoming surface position into the trapezoid frame which leaves the rest of the code unchanged - the vertex vector is rotated into surface coordinates before returning - the bounding box is adopted in case of a non-zero rotation angle using the `ConvexPolygonBounds` - all implementations are moved to source Co-authored-by: Andreas Stefl <487211+andiwand@users.noreply.github.com>
Adds the possibility to rotate trapezoid bounds along the center. This is modeled through an additional bounds value `eRotationAngle` which is defaulted to `0` obtaining the original, unrotated trapezoid. Summary - `inside` rotates the incoming surface position into the trapezoid frame which leaves the rest of the code unchanged - the vertex vector is rotated into surface coordinates before returning - the bounding box is adopted in case of a non-zero rotation angle using the `ConvexPolygonBounds` - all implementations are moved to source Co-authored-by: Andreas Stefl <487211+andiwand@users.noreply.github.com>
Adds the possibility to rotate trapezoid bounds along the center. This is modeled through an additional bounds value `eRotationAngle` which is defaulted to `0` obtaining the original, unrotated trapezoid. Summary - `inside` rotates the incoming surface position into the trapezoid frame which leaves the rest of the code unchanged - the vertex vector is rotated into surface coordinates before returning - the bounding box is adopted in case of a non-zero rotation angle using the `ConvexPolygonBounds` - all implementations are moved to source Co-authored-by: Andreas Stefl <487211+andiwand@users.noreply.github.com>
Adds the possibility to rotate trapezoid bounds along the center. This is modeled through an additional bounds value
eRotationAngle
which is defaulted to0
obtaining the original, unrotated trapezoid.Summary
inside
rotates the incoming surface position into the trapezoid frame which leaves the rest of the code unchangedConvexPolygonBounds