Railgrinder Wikipedia
The grinding wheels, of which there may be more than 100, are set at controlled angles to restore the track to its correct profile. A railgrinder and its operator in Montreal, 1912 The machines have been in use in North America, the United Kingdom and Europe since the early 20th century.