Text this: Monte Carlo simulation for proton dosimetry in magnetic fields