This fixes the segfault on Run 3 files, by reading xAOD::EventInfos using a ReadHandle.
xAOD::EventInfo
ReadHandle