anlgeant4::BasicPrimaryGen: user-defined spectrum.