Constraining cloud parameters using high density gas tracers in galaxies