Geant4-DNA Tracking individual molecules?

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information, it will take more time to help with your problem!

_Geant4 Version:_11.3.0
_Operating System:_MacOS 15.2
_Compiler/Version:_gcc
_CMake Version:_3.31.2


Dear all,

I’m attempting to implement a Geant4-DNA code where I can track all individual molecules forming, as well as e.g. their identifier, time and position of synthesis, and removal. Naively, the built-in functions of Geant4-DNA do not output this information, but they do seem to store it internally (G4Molecule). Is there a way to tap into it and extract it?

Will be very grateful for some guidance!

Thanks in advance,

Gidi

Dear,

Usually, ITSteppingAction and ITTrackingAction allow the user to intervene in the chemical species tracking. This function is added in chem3 example. More detail can be found in Physics Processes — Book For Application Developers 11.3 documentation