Development of an extended Macro Monte Carlo method for efficient and accurate dose calculation in magnetic fields.