-
Notifications
You must be signed in to change notification settings - Fork 0
Pulse shape discrimination
TEH, Chi-En edited this page Feb 22, 2023
·
1 revision
#!/usr/bin/env python
from concurrent.futures import ProcessPoolExecutor
import os
runs = [
'2316-2331',
'2333-2354',
'2357-2376',
'2378-2394',
'2529-2545',
'2570-2588',
'2591-2611',
'2614-2630',
'2633-2656',
'2711-2721',
'2830-2842 2844-2846 2848',
'2853-2870',
'4042-4067',
'4082-4116',
'4224-4245',
'4266-4300',
'4333-4380',
'4383-4414',
'4448-4464',
'4466-4493',
'4495-4509',
'4511-4541',
'4543-4573',
'4621-4640',
'4642-4661',
]
def job(run):
os.system('./pulse_shape_discrimination.py B %s &> logs/run-%s.log' % (run, run))
with ProcessPoolExecutor(max_workers=2) as executor:
submits = [executor.submit(job, run) for run in runs]