4D beam matrix reconstruction in particle accelerators | Synapse