A buffer gas cooled beam of barium monohydride