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

Example AdePT integration #19

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JuanGonzalezCaminero
Copy link

@JuanGonzalezCaminero JuanGonzalezCaminero commented Mar 18, 2024

This PR showcases how to integrate AdePT into this application.

The main changes are:

  • Linking the executable against the AdePT libraries
  • Adding a custom G4VModularPhysicsList which registers the AdePT physics constructor (In case of applications already using a modular physics lists we would only have to add the AdePT physics)

In addition, we include timers, a command-line switch to activate AdePT, and a macro file for the AdePT run.

The reason to provide a separate macro is that we are able to easily modify several configuration options through it. However, AdePT can also be configured without using a Geant4 messenger.

@JuanGonzalezCaminero JuanGonzalezCaminero marked this pull request as draft March 18, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant