5myT = r.TTree(
"myT",
"myT")
6myT.ReadFile(
"hps2019goldRuns.csv")
11outF = open(
'run2019pass0.txt',
'w')
15 fullpath = f
'/mss/hallb/hps/physrun2019/data/hps_0{RN}/hps_0{RN}.evio.*'
16 nParts = len(glob.glob(fullpath))
17 nPartsList.append(nParts)
19 print(
"Run number: ", RN)
20 print(
"N partitions: ", nParts)
21 passList = glob.glob(f
'/mss/hallb/hps/physrun2019/data/hps_0{RN}/hps_0{RN}.evio.0[1230]03[1234567890]')
24 if nParts == 0: print(
"hmmmmmmmmmmmmm ", fullpath)
26 nPartsPass += len(passList)
27 for fileLine
in passList:
28 outF.write(fileLine+
'\n')
33print(
"Total parts total: ", nPartsTot)
34print(
"Total parts in pass: ", nPartsPass)