A particle therapy system includes a particle accelerator to output a particle beam; and a scanning system for the particle accelerator to scan the particle beam across at least part of an irradiation target. The scanning system is configured to scan the particle beam in two dimensions that are at an angle relative to a direction of the particle beam. A structure defines an edge. The structure is controllable to move in the two dimensions relative to the irradiation target such that at least part of the structure is between at least part of the particle beam and the irradiation target. The structure includes a material that inhibits transmission of the particle beam.L'invention concerne un système de traitement à particules comprenant un accélérateur de particules émettant un faisceau de particules ; et un système d'analyse permettant à l'accélérateur de particules d'analyser le faisceau sur au moins une partie d'une zone d'irradiation ciblée. Le système d'analyse est conçu pour analyser le faisceau de particules selon deux dimensions qui forment un certain angle par rapport à une direction du faisceau de particules. Une structure définit un bord. Sous commande, la structure peut se déplacer selon les deux dimensions par rapport à la zone d'irradiation ciblée de manière à ce qu'au moins une partie de la structure se trouve entre au moins une partie du faisceau de particules et la zone d'irradiation ciblée. La structure comprend un matériau qui inhibe la transmission du faisceau de particules.