In order to research System-Generated Electromagnetic Pulse(SGEMP) effects which have complicated angular distribution and energy spectra, the 3-D Particle In Cell(PIC) code is used and the function module is appended to it to characterize cosine angular distribution and exponential energy spectra of photoelectrons. The external SGEMP effects induced by photoelectrons emitted from cylinder top surface are simulated by the 3-D PIC code. Two sets of parameters of X ray are adopted for simulation and the results are compared with the data from literature. It is shown that both results are the same in magnitude as that from literature. It is concluded that the PIC code is available for studying SGEMP effects to support basic data for nuclear hardening.