Skip to content

Refactor AdePT into 2 libraries 6: Refactor static geometry functions#522

Open
SeverinDiederichs wants to merge 6 commits intoapt-sim:masterfrom
SeverinDiederichs:factor_out_geometry_bridge
Open

Refactor AdePT into 2 libraries 6: Refactor static geometry functions#522
SeverinDiederichs wants to merge 6 commits intoapt-sim:masterfrom
SeverinDiederichs:factor_out_geometry_bridge

Conversation

@SeverinDiederichs
Copy link
Collaborator

@SeverinDiederichs SeverinDiederichs commented Mar 19, 2026

This PR belongs to the refactor of AdePT described in #516.
This PR is based on #520 and should not be reviewed before that one is merged.

This PR extracts the static geometry setup and mapping logic out of AdePTGeant4Integration into a dedicated AdePTGeometryBridge.

The goal is to separate the global geometry bridge responsibilities from the per-thread Geant4 integration object.

Before AdePTGeant4Integration did both:

  • per-thread Geant4 reconstruction and track return
  • global geometry conversion and lookup

This PR factors out the global geometry conversion and lookup into a separate helper. This makes the intended architecture clearer, without changing behavior.

It was verified that this PR

  • Changes physics results
  • Does not change physics results

@phsft-bot
Copy link

Can one of the admins verify this patch?

@SeverinDiederichs SeverinDiederichs force-pushed the factor_out_geometry_bridge branch from c9769d5 to 347252e Compare March 21, 2026 12:58
@SeverinDiederichs SeverinDiederichs added the cleaning improves code clarity, readability or other label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleaning improves code clarity, readability or other

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants