diff options
Diffstat (limited to 'utils/chi2')
-rwxr-xr-x | utils/chi2 | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -432,7 +432,14 @@ if __name__ == '__main__': ev = correct_energy_bias(ev) - ev_mc = get_events(args.mc, merge_fits=True, nhit_thresh=args.nhit_thresh, apply_nhit_trigger=False) + # Note: We loop over the MC filenames here instead of just passing the + # whole list to get_events() because I had to rerun some of the MC events + # using SNOMAN and so most of the runs actually have two different files + # and otherwise the GTIDs will clash + ev_mcs = [] + for filename in args.mc: + ev_mcs.append(get_events([filename], merge_fits=True, nhit_thresh=args.nhit_thresh, apply_nhit_trigger=False)) + ev_mc = pd.concat(ev_mcs) muon_mc = get_events(args.muon_mc, merge_fits=True, nhit_thresh=args.nhit_thresh, apply_nhit_trigger=False) weights = pd.concat([read_hdf(filename, "weights") for filename in args.weights],ignore_index=True) |