A novel approach in the free-electron laser diagnosis based on a pixelated phosphor detector