G4cout<<"The current number of ions defined in IonTable is : " << ionTable->Entries() <<G4endl;
//here only 6 ion types: proton, GenericIon,deuteron,triton,He3,alpha will be shown by default
如果这个时候,我按nucl以前帖子里面的讲解,添加代码:
G4ParticleDefinition* particleFe56 = ionTable->GetIon(26,56,0);
G4cout<<"The name of particleFe56 is : " << particleFe56->GetParticleName() <<G4endl;
G4cout<<"The current number of ions defined in IonTable is : " << ionTable->Entries() <<G4endl;