@beaudett, I chaged your code to: std::hypot(energyError,energy*momentumRelError)/momentum