Simulation, Generation, and Detection of Low Emittance Electron Beams for Ultrafast Science