I’m currently working on a code for Geant4 where I generate particles by a G4WrapperProcess() class. I’ve allready learned, that I can access secondaries using G4VParticleChange.
But is there any way to access the actual model of the interaction where the secondaries are coming from?
I would like to call a method like G4VEmModel::SelectRandomAtom() from inside my Process class.
The aim is to generate specific particles which properties are based on the properties of the element inside of my material the primary initially interacted with.
Sorry for answering my own question, I think I found a solution.
I just passed a pointer to the corresponding model to the WrapperProcess via the PhysicsList.