Can you provide an example of DICOM RT ION PLAN conversion to GeneralParticleSource or some reader of DICOM RT ION PLAN?
Note: I know you have a reader interface of DICOM RT PLAN implemented in /examples/extended/medical/DICOM/dicomReader/src/DicomFilePlan.cc though it’s not used in the actual code of this example itself, but I’m talking of another DICOM document (https://dicom.innolitics.com/ciods/rt-ion-plan).
Reading a RT Ion Plan and writing the code to use it is a non-negligible task that has not been addressed in Geant4. There are several applications that already have the code: GATE, PTSIM, GAMOS and TOPAS. I recommend you to use one of them. In the case of GAMOS you can take the code and reuse it in your application, just mention the source of the code