-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFormatAllBreakDownRates.py
More file actions
37 lines (33 loc) · 1.01 KB
/
FormatAllBreakDownRates.py
File metadata and controls
37 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
from array import array
import sys
import glob
import re
#import numpy as np
#import plotPathsOne
#dataSets = ['B2G','SUSY','EXO','Higgs','TOP','BPH','E_GAMMA','Taus','SMP','JET_MET','BTV']
dataSets = ['All']
print dataSets
for d in range(0, len(dataSets)):
print dataSets[d]
filein1 = open(sys.argv[1],'r')
lines1 = filein1.readlines()
#l = len(lines1)
for d in range(0, len(dataSets)):
#command = "'python plotPathsOne.py "
#sendlog = " >& "
#dataset = '"'+dataSets[d]+'"'
#string = "python plotRatePerSampleOne.py "
string = "python plotRatePerSampleOnevsTwo.py "
pag = "'"+dataSets[d]+"'"
string2 = ">& "
pagtxt = dataSets[d]+'.txt'
os.system(string+pag+string2+pagtxt)
#print dataset
#os.system(command+dataset+"'" + sendlog + dataSets[d] + ".txt")
for d in range(0,len(dataSets)):
#cmd = "python CleanSummary.py "
cmd = "python CleanSummaryTwo.py "
pagtxt = dataSets[d]+'.txt'
os.system(cmd+ pagtxt)
#os.system('python makeDStables.py')