Doppler spectroscopy of photofragments in a molecular beam