yieldTable.add_datasets(samples, Clear = True) yieldTable.add_datasets('FCNH') yieldTable.add_datasets('DATA') print '\n\n Printing yields...\n' if doOS: categoryNames.extend(catOS) if doSS: categoryNames.extend(catSS) if do3l: categoryNames.extend(cat3l) if not doPlots: yieldTable.get_scale_factors() for category in categoryNames: if category == 'inclusive': continue #yieldTable._rowList = ['Initial', '.', '.', '.', '.'] yieldTable._rowList = ['.', '.', '.', '.', '.'] if category[:2] == '3l' and do3l: yieldTable._rowList.extend(['3 lepton', 'Z removal', 'MET \& HT ', 'b-jet']) #, '1 jet']) #yieldTable._rowList.extend(['.', '.', '.', '.', '.', '.', 'BDT > -0.3']) elif category[:2] == 'ss' and doSS: yieldTable._rowList.extend(['ss lepton', '.', 'MET \& HT', '1 b-jet']) #, '1 jet'])
for process in p_plot: process.join() print '\n' if doYields: ### Initialize table maker ### tableFile = file('yields/.yields_tmp.tex', 'w') yieldTable = TableMaker('fcncAnalysis/combined_histos/{0}_cut1_{1}_{2}.root'.format(selection, period, batch), tableFile, scale = LUMIDATA, delimiter = '&', doSumBG = True) yieldTable.set_period(period) yieldTable.add_datasets(samples['all'], Clear = True) if not doPlots: #yieldTable.get_scale_factors() yieldTable.get_scale_factors(['FCNH', 'FCNHUp']) if do3l: yieldTable._columnList = ['Rare', 'WZJets3LNu', 'Fakes', 'BG', 'DATA', 'FCNH'] #yieldTable._columnList = ['Rare', 'WZJets3LNu', 'Fakes', 'BG', 'DATA', 'FCNHWW', 'FCNHTauTau', 'FCNHZZ'] #yieldTable._columnList = ['Rare', 'WZJets3LNu', 'Fakes', 'BG', 'DATA', 'FCNHUpWW', 'FCNHUpZZ', 'FCNHUpTauTau'] #yieldTable._columnList = ['Rare', 'WZJets3LNu', 'Fakes', 'BG', 'DATA', 'TTH_M-125'] #yieldTable._columnList = samples['3l_inclusive'] + ['BG', 'DATA', 'FCNH'] #yieldTable._columnList = ['BG', 'DATA', 'FCNHWW', 'FCNHZZ', 'FCNHTauTau'] #yieldTable._columnList = ['BG', 'DATA', 'FCNH']#, 'Significance'] yieldTable.add_datasets(samples['3l_inclusive'], Clear = True) #yieldTable.add_datasets('TTH_M-125') yieldTable.add_datasets('FCNH') #yieldTable.add_datasets('FCNHWW') #yieldTable.add_datasets('FCNHZZ')