From b11000942eb96c5b50a18030b0b8bb130a3701af Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 16 Nov 2020 08:00:44 -0600 Subject: loop over MC filenames --- utils/dm-search | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utils/dm-search') diff --git a/utils/dm-search b/utils/dm-search index 1d14d05..e24114c 100755 --- a/utils/dm-search +++ b/utils/dm-search @@ -475,7 +475,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) -- cgit