Line shapes of doppler shifted γ-rays from coincidence and singles spectra in measurements of nuclear lifetimes