diff options
Diffstat (limited to 'utils/dm-search')
-rwxr-xr-x | utils/dm-search | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/dm-search b/utils/dm-search index 2679d53..34509ac 100755 --- a/utils/dm-search +++ b/utils/dm-search @@ -585,6 +585,32 @@ if __name__ == '__main__': muon_mc = get_events(args.muon_mc, merge_fits=True, nhit_thresh=args.nhit_thresh, mc=True) weights = pd.concat([read_hdf(filename, "weights") for filename in args.weights],ignore_index=True) + # There are a handful of weights which turn out to be slightly negative for + # some reason. For example: + # + # run evn universe weight + # 10970 25 597 -0.000055 + # 11389 87 729 -0.021397 + # 11701 204 2 -0.000268 + # 11919 120 82 -0.002245 + # 11976 163 48 -0.000306 + # 11976 163 710 -0.000022 + # 12131 76 175 -0.000513 + # 12207 70 255 -0.002925 + # 12207 70 282 -0.014856 + # 12207 70 368 -0.030593 + # 12207 70 453 -0.019011 + # 12207 70 520 -0.020748 + # 12207 70 834 -0.028754 + # 12207 70 942 -0.020309 + # 12233 230 567 -0.000143 + # 12618 168 235 -0.000020 + # 13428 128 42 -0.083639 + # 14264 23 995 -0.017637 + # 15034 69 624 -0.000143 + # 15752 154 957 -0.006827 + weights = weights[weights.weight > 0] + ev_mc = correct_energy_bias(ev_mc) muon_mc = correct_energy_bias(muon_mc) |