From 33e8623886f7dd10265c5c8083e09d3e20b5bed6 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Sun, 14 Jun 2020 02:38:39 -0500 Subject: only submit 10% of flashers, neck events, and muons --- utils/submit-grid-jobs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/utils/submit-grid-jobs b/utils/submit-grid-jobs index c5f72b0..16d60af 100755 --- a/utils/submit-grid-jobs +++ b/utils/submit-grid-jobs @@ -571,10 +571,15 @@ if __name__ == '__main__': njobs = 0 for index, event in ev.iterrows(): if event['nhit_cal'] >= args.min_nhit: - if event['prompt'] and event['dc'] & DC_FLASHER != 0: - # Only want to submit 10% of prompt flasher events - if event['gtid'] % 10 != 0: - continue + if event['muon'] and event['stopping_muon']: + pass + else: + if event['prompt']: + if event['flasher'] or event['muon'] or event['neck']: + # Only want to submit 10% of prompt flasher, muon, + # and neck events + if event['gtid'] % 10 != 0: + continue if not event['prompt'] and event['instrumental']: # Only submit followers if they have no data cleaning cuts -- cgit