A measurement of the ratio from annihilation in deuterium and hydrogen gas