Analytic study of radiation shielding using proton beams in a fusion reactor and a spherical isotropic power reactor (SIPR)