{'fraction_non_alphanumeric': 0.015495867768595042, 'fraction_numerical': 0.0, 'mean_word_length': 5.971223021582734, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Zemax simulations describing collective effects in transition and diffraction radiation.

Transition and diffraction radiation from charged particles is commonly used for diagnostics purposes in accelerator facilities as well as THz sources for spectroscopy applications. Therefore, an accurate analysis of the emission process and the transport optics is crucial to properly characterize the source and precisely retrieve beam parameters. In this regard, we have developed a new algorithm, based on Zemax, to simulate both transition and diffraction radiation as generated by relativistic electron bunches, therefore considering collective effects. In particular, unlike other previous works, we take into account electron beam physical size and transverse momentum, reproducing some effects visible on the produced radiation, not observable in a single electron analysis. The simulation results have been compared with two experiments showing an excellent agreement.