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

refactor: TrackingVolume and VolumeBounds mutability #3037

Conversation

paulgessinger
Copy link
Member

@paulgessinger paulgessinger commented Mar 13, 2024

This PR:

  • Updates the TrackingVolume.cpp files, moving some methods
  • TrackingVolume holds mother volume as mutable
  • CuboidVolumeBounds and CylinderVolumeBounds:
    • Produce their boundary surfaces when requested instead of ahead of time
    • Gain set() functions to modify their defining parameters (used for volume synchronization)
  • Volume holds VolumeBounds as mutable internally, propagates mutability correctly (allows mutating non-const Volume instances)
  • Removes the TrackingVolume::create factories (they don't really have a reason at this point)

Blocked by:

@paulgessinger paulgessinger added this to the next milestone Mar 13, 2024
@github-actions github-actions bot added Component - Core Affects the Core module Component - Examples Affects the Examples module Component - Plugins Affects one or more Plugins Component - Documentation Affects the documentation labels Mar 13, 2024
@paulgessinger paulgessinger added the 🛑 blocked This item is blocked by another item label Mar 13, 2024
@paulgessinger paulgessinger force-pushed the refactor/geometry/1/tracking-volume-bounds-mutability branch from 440b67d to 3e86207 Compare March 14, 2024 08:59
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 75.57252% with 32 lines in your changes are missing coverage. Please review.

Project coverage is 48.91%. Comparing base (713b7ce) to head (804d0e5).

Files Patch % Lines
Core/src/Geometry/CylinderVolumeHelper.cpp 33.33% 6 Missing and 4 partials ⚠️
Core/src/Geometry/TrackingVolume.cpp 84.09% 7 Missing ⚠️
Core/src/Geometry/CylinderVolumeBounds.cpp 86.84% 0 Missing and 5 partials ⚠️
Core/src/Geometry/CuboidVolumeBounds.cpp 78.94% 0 Missing and 4 partials ⚠️
Core/src/Geometry/CuboidVolumeBuilder.cpp 57.14% 0 Missing and 3 partials ⚠️
Core/src/Geometry/Volume.cpp 66.66% 1 Missing and 1 partial ⚠️
Core/src/Geometry/DiscLayer.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3037      +/-   ##
==========================================
+ Coverage   48.81%   48.91%   +0.09%     
==========================================
  Files         489      488       -1     
  Lines       28883    28896      +13     
  Branches    13711    13708       -3     
==========================================
+ Hits        14099    14134      +35     
+ Misses       4955     4947       -8     
+ Partials     9829     9815      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paulgessinger paulgessinger force-pushed the refactor/geometry/1/tracking-volume-bounds-mutability branch from c9c7d47 to 3cde124 Compare March 25, 2024 13:10
@github-actions github-actions bot removed the Component - Documentation Affects the documentation label Mar 25, 2024
@paulgessinger paulgessinger removed the 🛑 blocked This item is blocked by another item label Mar 25, 2024
@paulgessinger paulgessinger marked this pull request as ready for review March 25, 2024 13:43
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.

Looks good.

Core/include/Acts/Geometry/Volume.hpp Show resolved Hide resolved
Core/include/Acts/Geometry/Volume.hpp Show resolved Hide resolved
Core/src/Geometry/CuboidVolumeBuilder.cpp Show resolved Hide resolved
Core/src/Geometry/CylinderVolumeBounds.cpp Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit d411085 into acts-project:main Mar 25, 2024
54 checks passed
@acts-project-service
Copy link
Collaborator

🔴 Athena integration test results [d411085]

Build job with this PR failed!

Please investigate the build job for the pipeline!

@acts-project-service acts-project-service added the Breaks Athena build This PR breaks the Athena build label Mar 25, 2024
@paulgessinger paulgessinger modified the milestones: next, v34.0.0 Mar 26, 2024
@andiwand andiwand removed the Breaks Athena build This PR breaks the Athena build label Apr 10, 2024
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 6, 2024
This PR:

- Updates the `TrackingVolume.cpp` files, moving some methods
- `TrackingVolume` holds mother volume as mutable
- `CuboidVolumeBounds` and `CylinderVolumeBounds`:
  - Produce their boundary surfaces when requested instead of ahead of time
  - Gain `set()` functions to modify their defining parameters (used for volume synchronization)
- `Volume` holds `VolumeBounds` as mutable internally, propagates mutability correctly (allows mutating non-const `Volume` instances)
- Removes the `TrackingVolume::create` factories (they don't really have a reason at this point)

Blocked by:

- acts-project#3026 
- acts-project#3030 
- acts-project#3032
- acts-project#3031
asalzburger pushed a commit to asalzburger/acts that referenced this pull request May 21, 2024
This PR:

- Updates the `TrackingVolume.cpp` files, moving some methods
- `TrackingVolume` holds mother volume as mutable
- `CuboidVolumeBounds` and `CylinderVolumeBounds`:
  - Produce their boundary surfaces when requested instead of ahead of time
  - Gain `set()` functions to modify their defining parameters (used for volume synchronization)
- `Volume` holds `VolumeBounds` as mutable internally, propagates mutability correctly (allows mutating non-const `Volume` instances)
- Removes the `TrackingVolume::create` factories (they don't really have a reason at this point)

Blocked by:

- acts-project#3026 
- acts-project#3030 
- acts-project#3032
- acts-project#3031
@paulgessinger paulgessinger mentioned this pull request Aug 9, 2024
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 Component - Examples Affects the Examples module Component - Plugins Affects one or more Plugins
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants