GetProcessName in G4VProcess

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.3.2
Compiler/Version:
CMake Version:

Hi, I was successfully running with Geant4-11.2.2. code which contains the following call:

aTrack->GetCreatorProcess()->GetProcessName()

Now, with version 11.3.0, it gives me segmentation fault. Any idea why it may be?

Mariusz

Is your aTrack a primary track (i.e., it aTrack->GetParentID() == 0)? If so, then it has no creator process, so that accessor returns a null pointer.

That was it, thank you!