A spectrum viewer for the TBRAGG detector at TRIUMF