def st_eff_yield(opts, tabname, label): tab = THSTable() tab.column_append_from_dict('Mode', 'fname,fnamebar') tabfile = os.path.join(cbxtabpath, '818ipbv12', 'singletag_sigmc_eff.txt') tab.column_append_from_tab_file('Efficiency(%)', tabfile, 'Efficiency(%)') tabfile = os.path.join(cbxtabpath, label, 'singletag_data_yield.txt') tab.column_append_from_tab_file('Data Yield', tabfile, 'Gamma 25.2 MeV') tab.column_append_from_tab_file('Background', tabfile, 'Bkgd') texhead = r'''Single tag mode & Efficiency(\%) & Data yield & Background ''' tab.output(tabname, texhead)
def dt_dz_eff_yield(opts, tabname, label): tab = THSTable() tab.column_append_from_dict('Mode', 'fname,fnamebar', 'double-dz') tabfile = os.path.join(cbxtabpath, '818ipbv12', 'doubletageff.txt') tab.column_append_from_tab_file('Efficiency(%)', tabfile, 'Efficiency(%)', row=':10') tabfile = os.path.join(cbxtabpath, label, 'datadoubletagyields.txt') tab.column_append_from_tab_file('Data Yield', tabfile, '25.2 MeV', row=':10') tab.column_append_from_tab_file('Background', tabfile, 'Bkgd', row='10:') texhead = r'''Double tag mode & Efficiency(\%) & Data yield & Background ''' tab.output(tabname, texhead)