Geant4 read the tps file

I am working on using Geant4 to import treatment plans from the Pinnacle radiation therapy planning system and re-calculate the dose distribution. However, I’m unsure how to properly import Pinnacle’s plan files (e.g., .dcm, .plan, or other proprietary formats) into Geant4 and map them to the necessary simulation components (patient geometry, beam parameters, etc.).

My questions are:

  1. What file formats from Pinnacle can be imported into Geant4 for dose recalculation, and are there libraries or tools to parse these files (e.g., DICOM RT modules, Pinnacle-specific APIs)?
  2. How do I map the imported Pinnacle data (e.g., beam angles, energies, MLC positions, prescribed dose) to Geant4 components (geometry, particle sources, physics lists)?
  3. Are there existing examples, tutorials, or open-source projects that demonstrate Geant4-based dose recalculation using Pinnacle treatment plans?

The extended/medical/DICOM examples might help getting started, although will require downloading DCMTK.

These examples use a generic beam, there are no vendor specific APIs that I’m aware of. If you want a LINAC specific dose you will probably need to either use an already existing phasespace file, or simulate the LINAC head yourself.

thank for your reply, i will try it