Beam dynamics in resonant plasma wakefield acceleration at SPARC_LAB