A model for calculating electron beam scattering in treatment planning.