Hello,
When i definite the particle to gun, I just can definite the simple particles,such as:
G4ParticleDefinition* particle
= G4ParticleTable::GetParticleTable()->FindParticle(“e-”);
If I want to find the ion of Kr, how to definite it?
Hello,
When i definite the particle to gun, I just can definite the simple particles,such as:
G4ParticleDefinition* particle
= G4ParticleTable::GetParticleTable()->FindParticle(“e-”);
If I want to find the ion of Kr, how to definite it?
G4ParticleDefinition* ion = G4IonTable::GetIonTable()->GetIon(Z, A, excitationEnergy);
See example rdecay01, PrimaryGeneratorAction.cc, lines 68-75