5myT = r.TTree(
"myT",
"myT")
6myT.ReadFile(
"hps2021goldRuns.csv")
9outF = open(
'run2021pass0.txt',
'w')
12 nfiles = run.evio_files_count
14 fullpath = f
'/mss/hallb/hps/physrun2021/data/hps_0{RN}/hps_0{RN}.evio.00000'
16 if not os.path.isfile(fullpath):
18 fullpath = f
'/mss/hallb/hps/physrun2021/data/hpspin_0{RN}/hpspin_0{RN}.evio.00000'
20 print(
"Run number: ", RN)
21 print(
"N partitions: ", nfiles)
22 passList = glob.glob(f
'/mss/hallb/hps/physrun2021/data/hps{pin}_0{RN}/hps{pin}_0{RN}.evio.0[1230]03[1234567890]')
25 nPartsTot += len(passList)
26 for fileLine
in passList:
27 outF.write(fileLine+
'\n')
32print(
"Total parts in pass: ", nPartsTot)