6
6
from binning import binning
7
7
from tabulate import tabulate
8
8
9
- print 'Welcome in RunJES !'
9
+ print 'Welcome in PrintJES !'
10
10
11
11
12
12
def parseOptions ():
@@ -65,6 +65,7 @@ def parseOptions():
65
65
if doubleDiff : nBins = len (obs_bins )
66
66
else : nBins = len (obs_bins )- 1
67
67
68
+
68
69
# Tables with numerical values
69
70
tables = {}
70
71
inclusiveJES = {}
@@ -78,50 +79,50 @@ def parseOptions():
78
79
# nominal_incl += evts['signal_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
79
80
# up_incl += evts['signal_jesup_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
80
81
# dn_incl += evts['signal_jesdn_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
81
- table .append (['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin ),
82
- evts_noWeight ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
83
- evts_noWeight ['signal_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
84
- evts_noWeight ['signal_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
85
- evts ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
86
- evts ['signal_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
87
- evts ['signal_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
88
- JESNP ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )]])
82
+ table .append (['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin ),
83
+ evts_noWeight ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
84
+ evts_noWeight ['signal_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
85
+ evts_noWeight ['signal_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
86
+ evts ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
87
+ evts ['signal_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
88
+ evts ['signal_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
89
+ JESNP ['signal_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )]])
89
90
90
91
# nominal_incl += evts['qqzz_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
91
92
# up_incl += evts['qqzz_jesup_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
92
93
# dn_incl += evts['qqzz_jesdn_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
93
- table .append (['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin ),
94
- evts_noWeight ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
95
- evts_noWeight ['qqzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
96
- evts_noWeight ['qqzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
97
- evts ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
98
- evts ['qqzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
99
- evts ['qqzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
100
- JESNP ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )]])
94
+ table .append (['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin ),
95
+ evts_noWeight ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
96
+ evts_noWeight ['qqzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
97
+ evts_noWeight ['qqzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
98
+ evts ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
99
+ evts ['qqzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
100
+ evts ['qqzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
101
+ JESNP ['qqzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )]])
101
102
102
103
# nominal_incl += evts['ggzz_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
103
104
# up_incl += evts['ggzz_jesup_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
104
105
# dn_incl += evts['ggzz_jesdn_'+jesName+'_'+year+'_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
105
- table .append (['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin ),
106
- evts_noWeight ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
107
- evts_noWeight ['ggzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
108
- evts_noWeight ['ggzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
109
- evts ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
110
- evts ['ggzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
111
- evts ['ggzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
112
- JESNP ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )]])
106
+ table .append (['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin ),
107
+ evts_noWeight ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
108
+ evts_noWeight ['ggzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
109
+ evts_noWeight ['ggzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
110
+ evts ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
111
+ evts ['ggzz_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
112
+ evts ['ggzz_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
113
+ JESNP ['ggzz_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )]])
113
114
114
115
# nominal_incl += evts['ZX_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
115
116
# up_incl += evts['ZX_jesup_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
116
117
# dn_incl += evts['ZX_jesdn_'+fState+'_'+obsname_out+'_recobin'+str(recobin)]
117
- table .append (['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin ),
118
- evts_noWeight ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
119
- evts_noWeight ['ZX_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
120
- evts_noWeight ['ZX_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
121
- evts ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
122
- evts ['ZX_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
123
- evts ['ZX_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )],
124
- JESNP ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out + '_recobin' + str (recobin )]])
118
+ table .append (['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin ),
119
+ evts_noWeight ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
120
+ evts_noWeight ['ZX_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
121
+ evts_noWeight ['ZX_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
122
+ evts ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
123
+ evts ['ZX_jesup_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
124
+ evts ['ZX_jesdn_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )],
125
+ JESNP ['ZX_' + jesName + '_' + fState + '_' + str (year )+ '_' + obsname_out . replace ( 'pT4l' , 'ZZPt' ) + '_recobin' + str (recobin )]])
125
126
126
127
# table.append(['INCLUSIVE', nominal_incl, up_incl, dn_incl, str(round(dn_incl/nominal_incl,3))+'/'+str(round(up_incl/nominal_incl,3))])
127
128
table .append ([])
0 commit comments