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: harmonize shared ptr usage for surfaces with detector elements #2451

Conversation

asalzburger
Copy link
Contributor

Prompted through comments in #2439

This PR harmonies the constructor signature for surfaces with detector elements and bounds, it fixes also a bug in the cylinder surface that a shared_ptr is first moved then assert checked, if this was the sole occurrence, e.g. by construction
Constructor(std::make_shared<Foo> the assert would have always fired.

@asalzburger asalzburger added this to the next milestone Sep 15, 2023
@github-actions github-actions bot added the Component - Core Affects the Core module label Sep 15, 2023
@asalzburger
Copy link
Contributor Author

Hey @niermann999 - you asked for it.

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #2451 (688e198) into main (9e20cea) will not change coverage.
The diff coverage is 63.63%.

@@           Coverage Diff           @@
##             main    #2451   +/-   ##
=======================================
  Coverage   49.71%   49.71%           
=======================================
  Files         461      461           
  Lines       25989    25989           
  Branches    11934    11934           
=======================================
  Hits        12921    12921           
  Misses       4600     4600           
  Partials     8468     8468           
Files Changed Coverage Δ
Core/include/Acts/Surfaces/CylinderSurface.hpp 100.00% <ø> (ø)
Core/include/Acts/Surfaces/DiscSurface.hpp 100.00% <ø> (ø)
Core/include/Acts/Surfaces/PlaneSurface.hpp 100.00% <ø> (ø)
Core/src/Surfaces/CylinderSurface.cpp 37.98% <50.00%> (ø)
Core/src/Surfaces/DiscSurface.cpp 33.33% <66.66%> (ø)
Core/src/Surfaces/PlaneSurface.cpp 56.56% <75.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kodiakhq kodiakhq bot merged commit a9953db into acts-project:main Sep 15, 2023
58 checks passed
@paulgessinger paulgessinger modified the milestones: next, v29.2.0 Sep 15, 2023
@asalzburger asalzburger deleted the feat-harmonize-shared-ptr-usage-surfaces branch September 19, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants