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.2.2
_Operating System:_MacOS
_Compiler/Version:_Clang 17
_CMake Version:_3.31.0
—Dear experts,
I’m currently having an issue on tracking information of my decay event. I want to see what is the energy deposition I have on my detector that is caused by Bremsstrahlung radiation, whether it is directly from an electron or from an Auger electron.
Initially, my attempt is to see all of the energy deposition I have and create a for-loop that went through the track’s parentID until it reach to 0, since in geant4 the new track will inherit the trackID of its parent and record it as its parentID if I understand correctly. But I went through the Geant4 manual and realize that Geant4 does not save the parent memory of particles’ parent if the parent particle is absorbed. Therefore, my new guess for my algorithm is to save all the information of my event and the descendants into a map when the decay event is first created.
However, I am a little confused of how I should do that, because my previous attempt is done on my stepping class, I wonder if it is still possible for me to do that in that class or I need to create a new class to accomplish my goal.
Sincerely,
Francis