Flagged uniform particle splitting for variance reduction in proton and carbon ion track-structure simulations. (6th July 2017)