-
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: adapt visitor concept #2901
feat: adapt visitor concept #2901
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2901 +/- ##
==========================================
+ Coverage 48.92% 48.93% +0.01%
==========================================
Files 496 496
Lines 28849 28899 +50
Branches 13677 13705 +28
==========================================
+ Hits 14113 14142 +29
+ Misses 4874 4872 -2
- Partials 9862 9885 +23 ☔ View full report in Codecov by Sentry. |
📊: Physics performance monitoring for ab6dd0dphysmon summary
|
If this is breaking we need to hold this until v33. |
I'm happy with this, but we'll really have to hold this until the next major version I think. |
Hey @paulgessinger - I have done as you suggested, it should now not be breaking change anymore. |
🔴 Athena integration test results [5166de1]🔴 Some tests have failed!Please investigate the pipeline! |
This PR enhances the visitor pattern for the Acts geometry. It adds a non-const visitor pattern which will allow to also use the visitor pattern to set the material to the new detector geometry and will replace this `IMaterialProvider` mechanism and will rely on the same recursive visiting. The unit tests show how this can be used to assign material to a pre-built geometry instance. Note: The new `visitSurfaces` method of the `TrackingGeometry` will now visit all reachable surfaces, and not only the sensitive ones. This allows it to e.g. extract material surfaces and will remove a lot of duplicated code in `SurfaceMaterialMapper` and `VolumeMaterialMapper` that manually walk through the `TrackingGeometry` hierarchy.
This PR enhances the visitor pattern for the Acts geometry.
It adds a non-const visitor pattern which will allow to also use the visitor pattern to set the material to the new detector geometry and will replace this
IMaterialProvider
mechanism and will rely on the same recursive visiting.The unit tests show how this can be used to assign material to a pre-built geometry instance.
Note: The new
visitSurfaces
method of theTrackingGeometry
will now visit all reachable surfaces, and not only the sensitive ones. This allows it to e.g. extract material surfaces and will remove a lot of duplicated code inSurfaceMaterialMapper
andVolumeMaterialMapper
that manually walk through theTrackingGeometry
hierarchy.