Emma Donoghue’s novel takes as its inspiration the true story of a 19th-century accident on a French railway.