Measuring the baryon acoustic oscillation peak position with different galaxy selections