In situ YBaCuO thin films are deposited on MgO single-crystal by pulsed laser ablation using an excimer laser (KrF, 248 nm). Deposition and cooling conditions are investigated in order to obtain c-oriented samples. The influence of substrate temperature and oxygen pressure during both deposition and post-deposition processes on the structural (orientation, lattice parameters) and electrical (resistivity at 300 K, critical temperature, transition width) film properties is analyzed. These studies lead to reproducible high quality c-oriented thin films which exhibit a critical temperature of 90 K, a superconducting transition width less than 1 K and a good behavior in the normal state.