Macroscopic quantum tunneling and retrapping processes in moderately damped YBaCuO Josephson Junctions