Performance of an electron linear accelerator for the first photoneutron source in China