Skip to content

Factor out nuclear interactions: available now for external users. #124

Merged
mnovak42 merged 4 commits intomasterfrom
factorGNuc
Apr 3, 2025
Merged

Factor out nuclear interactions: available now for external users. #124
mnovak42 merged 4 commits intomasterfrom
factorGNuc

Conversation

@mnovak42
Copy link
Copy Markdown
Owner

@mnovak42 mnovak42 commented Apr 3, 2025

Nuclear (gamma/electron/positron) interactions can be invoked now easily using the PerformNuclear method, even from outside of the G4HepEmTrackingManager, making them available for external users as well.

The type of the interaction is determined by the partileID input argument(={2/0/1} --> gamma/electron/positron - nuclear). The corresponding G4HadronInelasticProcess is invoked, the input track and step are updated, the secondaries are stacked to the secondary track vector of the input step and the energy deposited during the interaction (or due to applying the cuts on the secondaries) is returned. The method is self contained, i.e. includes all preparations required to perform the interactions.

Additional methods are provided to make the pointers of the gamma/electron/positron - nuclear G4VProcess available. These can be used to check if the corresponding process is available (i.e. not nullptr) before invoking PerformNuclear.

mnovak42 added 4 commits April 3, 2025 09:19
…well (can be invoked now from outside of the G4HepEmTrackingManager)
…can be used to check if they are null or available).
The `PerformNuclear` method can be used to invoke the gamma/electron/positron - nuclear
interactions now depending on the `particleID` input parameter value (2/0/1 for gamma/
electron/positron - nuclear interaction). The method is self contained, i.e. everything
that is needed to invoke the corresponding `G4HadronInelasticProcess` is done inside
the method. The interaction is invoked, the step and track are updated to their post-
interaction state, the secondaries are stacked to the secondary track vector of the
input step and the energy deposited during the interaction (or due to applying the cut)
is returned.
@mnovak42 mnovak42 merged commit 3a14091 into master Apr 3, 2025
5 checks passed
@mnovak42 mnovak42 deleted the factorGNuc branch April 3, 2025 18:05
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