Using energy peaks to measure new particle masses