Measurement of the 242Pu(n,f) cross section at the CERN n_TOF facility