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: OrientedSurface improvements #3026

Merged

Conversation

paulgessinger
Copy link
Member

This PR:

  1. Makes OrientedSurface a struct with member names
  2. Remove the OrientedSurfaces typedef over a vector
  3. Add aliases AlongNormal and OppositeNormal to the Direction type

I don't think this is breaking.

@paulgessinger paulgessinger added this to the next milestone Mar 12, 2024
@github-actions github-actions bot added Component - Core Affects the Core module Component - Plugins Affects one or more Plugins Component - Documentation Affects the documentation labels Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

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

Project coverage is 48.83%. Comparing base (4f33d42) to head (1cdb6fe).

Files Patch % Lines
Core/src/Geometry/ConeVolumeBounds.cpp 20.00% 0 Missing and 8 partials ⚠️
Core/src/Geometry/CutoutCylinderVolumeBounds.cpp 20.00% 0 Missing and 8 partials ⚠️
Core/src/Geometry/CuboidVolumeBounds.cpp 45.45% 0 Missing and 6 partials ⚠️
Core/src/Geometry/CylinderVolumeBounds.cpp 14.28% 0 Missing and 6 partials ⚠️
Core/src/Geometry/TrapezoidVolumeBounds.cpp 40.00% 0 Missing and 6 partials ⚠️
Core/src/Detector/PortalGenerators.cpp 33.33% 0 Missing and 2 partials ⚠️
Core/src/Visualization/GeometryView3D.cpp 0.00% 0 Missing and 2 partials ⚠️
Core/src/Geometry/GenericCuboidVolumeBounds.cpp 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3026      +/-   ##
==========================================
+ Coverage   48.82%   48.83%   +0.01%     
==========================================
  Files         491      491              
  Lines       28886    28893       +7     
  Branches    13705    13705              
==========================================
+ Hits        14104    14111       +7     
  Misses       4954     4954              
  Partials     9828     9828              

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

Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/ConeVolumeBounds.cpp Outdated Show resolved Hide resolved
Core/src/Geometry/TrackingVolume.cpp Outdated Show resolved Hide resolved
@paulgessinger
Copy link
Member Author

@andiwand Thanks, somehow I missed these.

@paulgessinger paulgessinger force-pushed the refactor/geometry/orientedsurfaces branch from 8352817 to 1cdb6fe Compare March 15, 2024 08:10
@kodiakhq kodiakhq bot merged commit eb90483 into acts-project:main Mar 15, 2024
56 checks passed
dimitra97 pushed a commit to dimitra97/acts that referenced this pull request Mar 19, 2024
This PR:

1. Makes `OrientedSurface` a struct with member names
2. Remove the `OrientedSurfaces` typedef over a vector
3. Add aliases `AlongNormal` and `OppositeNormal` to the `Direction` type

I don't think this is breaking.
kodiakhq bot pushed a commit that referenced this pull request Mar 25, 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:

- #3026 
- #3030 
- #3032
- #3031
@paulgessinger paulgessinger modified the milestones: next, v33.1.0 Mar 26, 2024
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 6, 2024
This PR:

1. Makes `OrientedSurface` a struct with member names
2. Remove the `OrientedSurfaces` typedef over a vector
3. Add aliases `AlongNormal` and `OppositeNormal` to the `Direction` type

I don't think this is breaking.
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:

1. Makes `OrientedSurface` a struct with member names
2. Remove the `OrientedSurfaces` typedef over a vector
3. Add aliases `AlongNormal` and `OppositeNormal` to the `Direction` type

I don't think this is breaking.
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
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 - Documentation Affects the documentation Component - Plugins Affects one or more Plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants