Dark energy survey year 3 results: Galaxy sample for BAO measurement - Rosell, A. Carnero (2022)