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:_Geant4_11.2.1
Dear friends,
Does the UHDR example not support the use of heavy ions (such as carbon ions) as a particle source, because I noticed that in PrimaryGeneratorMessenger.cc,
=======================================================================
PrimaryGeneratorMessenger::PrimaryGeneratorMessenger(PrimaryGeneratorAction *pPrimaryGenerator)
: G4UImessenger(), fpPrimaryGenerator(pPrimaryGenerator) {
fparticle = std::make_unique(“/UHDR/source/particle”, this);
fparticle->SetGuidance(“Add time structure.”);
fparticle->SetGuidance(“e-, proton, alpha”);
And I try to add the ions in macro file (beam.in), but it didn’t work.
Best wishes.