Modeling of beam customization devices in the pencil-beam splitting algorithm for heavy charged particle radiotherapy