Skip to content

Refactor AdePT into 2 libraries 7: Use callback to process GPUSteps#523

Open
SeverinDiederichs wants to merge 7 commits intoapt-sim:masterfrom
SeverinDiederichs:use_callback_to_process_GPUsteps
Open

Refactor AdePT into 2 libraries 7: Use callback to process GPUSteps#523
SeverinDiederichs wants to merge 7 commits intoapt-sim:masterfrom
SeverinDiederichs:use_callback_to_process_GPUsteps

Conversation

@SeverinDiederichs
Copy link
Collaborator

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

This PR continues the decoupling between AsyncAdePTTransport and the AdePTGeant4Integration layer by moving returned-hit processing out of transport. Transport now exposes a callback-based handling of the returned hits via HandleReturnedGPUHitBatchesWith(...). Now, the AdePTTrackingManager invokes the Geant4-side ProcessGPUStep(...) reconstruction for each batch.

This is a structural cleanup required to separate the AdePT core and g4integration libraries.

It was verified that this PR

  • Changes physics results
  • Does not change physics results

@SeverinDiederichs SeverinDiederichs added the cleaning improves code clarity, readability or other label Mar 22, 2026
@SeverinDiederichs SeverinDiederichs changed the title Refactor AdePT into 2 libraries 6: Use callback to process GPUSteps Refactor AdePT into 2 libraries 7: Use callback to process GPUSteps Mar 22, 2026
@phsft-bot
Copy link

Can one of the admins verify this patch?

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