Support for discrete energy layers (synchrotron-based proton therapy) in OpenTPS

Dear OpenTPS team,

First of all, thank you for the great work you have put into developing and maintaining OpenTPS. It is a valuable open-source tool for the proton therapy research community.

I have been studying the plan optimization workflow in OpenTPS and noticed that the energy layers are generated by parameters such as the energy layer spacing, with energies taken as continuous values within the range of the target. I also read the earlier discussion on the forum started by chenye, and I understand that this approach may have been designed with the characteristics of IBA cyclotron-based systems in mind, where the energy can be adjusted in a quasi-continuous manner.

My research, however, is based on a synchrotron-based proton therapy system, in which only a discrete set of energies is available for delivery. I would therefore like to ask:

  1. Does OpenTPS already provide native support (functions, modules, or options) for restricting the plan to a predefined discrete list of energies? If so, could you point me to the relevant documentation or example scripts?
  2. If not, I am considering implementing this myself by forcing the selectable energies (e.g. in the energy layer selection/spot placement step) to snap to, or be drawn from, a user-defined discrete energy table. Are there any assumptions elsewhere in the code, for example in beam model interpolation, spot placement, the MCsquare interface, the optimization objective, or plan data structures, that could cause unexpected or hard-to-detect problems if the energies are constrained this way? Do you have any recommendations or pitfalls to watch out for?

Best regards,
Ray

Dear Ray,

Restricting the energies will affect the energy layer placement and, consequently, the quality of your plan. You could manually place the spots and energy layers instead of relying on OpenTPS. This would ensure that you only use a discrete set of energies. However, you will need to ensure that your target is sufficiently covered; otherwise, the optimization might not converge.

The beam model used in OpenTPS provides values for a discrete set of energies and interpolates between them. You might need to adapt it to your synchrotron, as the current beam model is based on a cyclotron.

You will find the relevant information you need in the planDesign module and in the planInitializer file from the planOptimization module.

I hope this answer provides some help for your project.

Regards, Eliot

Dear Eliot,

Thank you for your reply and the detailed explanation. I understand the situation now.

My current plan is to use the modules in OpenTPS to estimate the WET (Water Equivalent Thickness) range of the target volume, and then manually place the energy layers for optimization.

Thank you again for your time and for your great contributions to OpenTPS!

Best regards,

Ray

Eliot Peeters <notifications@opentps.discoursemail.com> 于2026年10月23日周五 18:06写道:

1 Like