Photonuclear reaction based high-energy x-ray spectrometer to cover from 2 MeV to 20 MeV.