'monoel': selectors.monoelectron, 'monoelHfake': selectors.monoelectronHadProxy, 'elmu': selectors.oppflavor, 'eefake': selectors.zee, 'wenu': selectors.wenuall, 'zeeJets': selectors.zeeJets, 'zmmJets': selectors.zmmJets } sphLumi = sum(allsamples[s].lumi for s in ['sph-16b-r', 'sph-16c-r', 'sph-16d-r', 'sph-16e-r', 'sph-16f-r', 'sph-16g-r', 'sph-16h']) haloNorms = [ 8.7 * allsamples[sph].lumi / sphLumi for sph in ['sph-16b-r', 'sph-16c-r', 'sph-16d-r', 'sph-16e-r', 'sph-16f-r', 'sph-16g-r', 'sph-16h'] ] spikeNorms = [ 8.5 * allsamples[sph].lumi / sphLumi for sph in ['sph-16b-r', 'sph-16c-r', 'sph-16d-r', 'sph-16e-r', 'sph-16f-r', 'sph-16g-r', 'sph-16h'] ] noncollision = [ ('halo', selectors.haloMIP(haloNorms[0])), ('haloUp', selectors.haloCSC(haloNorms[0])), ('spikeSieie', selectors.spikeSieie(spikeNorms[0])) ] data_15 = [] data_sph = ['monoph', 'efake', 'hfake', 'hfakeUp', 'hfakeDown', 'purity', 'purityUp', 'purityDown', 'lowmt', 'lowmtEfake', 'lowmtHfake', 'gjets', 'dimu', 'diel', 'monomu', 'monoel'] + noncollision data_smu = ['dimu', 'monomu', 'monomuHfake', 'elmu', 'zmmJets'] # are SinglePhoton triggers in this PD? (do the samples know about them, obviously they are not used to define it) data_sel = ['diel', 'monoel', 'monoelHfake', 'eefake', 'zeeJets'] # are SinglePhoton triggers in this PD? (do the samples know about them, obviously they are not used to define it) mc_cand = ['monoph', 'purity'] mc_qcd = ['hfake', 'hfakeUp', 'hfakeDown', 'purity', 'purityUp', 'purityDown', 'gjets'] mc_sig = ['monoph', 'purity', 'signalRaw'] mc_lep = ['monomu', 'monoel'] mc_dilep = ['dimu', 'diel', 'elmu', 'zmmJets', 'zeeJets'] mc_vgcand = [(region, selectors.kfactor(defaults[region])) for region in mc_cand] mc_vglep = [(region, selectors.kfactor(defaults[region])) for region in mc_lep] mc_vgdilep = [(region, selectors.kfactor(defaults[region])) for region in mc_dilep]
mc_qcd = ['hfake', 'hfakeUp', 'hfakeDown', 'purity', 'purityUp', 'purityDown', 'gjets'] mc_sig = ['monoph', 'signalRaw'] mc_lep = ['monomu', 'monoel'] mc_dilep = ['dimu', 'diel', 'elmu'] mc_vgcand = [(region, selectors.kfactor(defaults[region])) for region in mc_cand] mc_vglep = [(region, selectors.kfactor(defaults[region])) for region in mc_lep] mc_vgdilep = [(region, selectors.kfactor(defaults[region])) for region in mc_dilep] mc_gj = [('monoph', selectors.kfactor(selectors.gjSmeared)), ('purity', selectors.kfactor(selectors.purity))] mc_wlnu = [(region, selectors.wlnu(defaults[region])) for region in mc_cand] + ['wenu'] sphLumi = allsamples['sph-d3'].lumi + allsamples['sph-d4'].lumi haloNorms = [ 5.9 * allsamples[sph].lumi / sphLumi for sph in ['sph-d3', 'sph-d4'] ] selectors = { # Data 'sph-d3': data_sph + [('halo', selectors.haloCSC(haloNorms[0])) ,('haloUp', selectors.haloMIP(haloNorms[0])) ,('haloDown', selectors.haloSieie(haloNorms[0])) ], 'sph-d4': data_sph + [('halo', selectors.haloCSC(haloNorms[1])) ,('haloUp', selectors.haloMIP(haloNorms[1])) ,('haloDown', selectors.haloSieie(haloNorms[1])) ], 'smu-d3': data_smu, 'smu-d4': data_smu, 'sel-d3': data_sel, 'sel-d4': data_sel, # MC for signal region 'znng-130': mc_vgcand, 'wnlg-130': mc_vgcand + mc_vglep, 'zg': mc_cand + mc_lep + mc_dilep,
mc_vglowmt = [(region, selectors.kfactor(defaults[region])) for region in mc_lowmt] sphLumi = sum(allsamples[s].lumi for s in ['sph-16b2-d', 'sph-16c2-d', 'sph-16d2-d']) haloNorms = [ 8.7 * allsamples[sph].lumi / sphLumi for sph in ['sph-16b2-d', 'sph-16c2-d', 'sph-16d2-d'] ] neroSphLumi = allsamples['sph-16b2-d'].lumi + allsamples['sph-16c2-d'].lumi + allsamples['sph-16d2-d'].lumi print neroSphLumi neroHaloNorms = [ 5.5 * allsamples[sph].lumi / neroSphLumi for sph in ['sph-16b2-d', 'sph-16c2-d', 'sph-16d2-d'] ] print neroHaloNorms neroSpikeNorms = [ 8.5 * allsamples[sph].lumi / neroSphLumi for sph in ['sph-16b2-d', 'sph-16c2-d', 'sph-16d2-d'] ] selectors = { # Data 2016 # dima 'sph-16b2-d': data_sph + [('halo', selectors.haloMIP(neroHaloNorms[0])) ,('haloUp', selectors.haloCSC(neroHaloNorms[0])) ,('haloDown', selectors.haloSieie(neroHaloNorms[0])) ,('spikeE2E9', selectors.spikeE2E9(neroSpikeNorms[0])) ,('spikeSieie', selectors.spikeSieie(neroSpikeNorms[0])) ,('spikeSipip', selectors.spikeSipip(neroSpikeNorms[0])) ], 'sph-16c2-d': data_sph + [('halo', selectors.haloMIP(neroHaloNorms[1])) ,('haloUp', selectors.haloCSC(neroHaloNorms[1])) ,('haloDown', selectors.haloSieie(neroHaloNorms[1])) ,('spikeE2E9', selectors.spikeE2E9(neroSpikeNorms[1])) ,('spikeSieie', selectors.spikeSieie(neroSpikeNorms[1])) ,('spikeSipip', selectors.spikeSipip(neroSpikeNorms[1])) ], 'sph-16d2-d': data_sph + [('halo', selectors.haloMIP(neroHaloNorms[2])) ,('haloUp', selectors.haloCSC(neroHaloNorms[2])) ,('haloDown', selectors.haloSieie(neroHaloNorms[2]))