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:v11.3
_Operating System: Ubuntu 22.04
_Compiler/Version:gcc
_CMake Version: cmake
Hi experts,
—I want define H-(hydrogen atom with an e-) with G4GeneralParticleSource,
/gps/particle ion
/gps/ion 1 1 -1
I configured an ion source as described above using Geant4, but during runtime, G4 displays protons instead of my defined ions. Could there be limitations in G4’s ion definition capability? (Note: When attempting to define H- ions through the G4ParticleDefinition class, G4 indicates this ion has already been predefined.)