From f74d0b1888180ef1c5071ce427c0f479128c7e38 Mon Sep 17 00:00:00 2001 From: leonoravesterbacka Date: Thu, 24 Mar 2016 18:18:12 +0100 Subject: [PATCH 1/3] updates for met studies with gamma+jets, photonId, samples etc. --- ObjectStudies/cfg/run_MET_cfg.py | 45 ++++++++++++++----- .../python/analyzers/metCoreModules_cff.py | 10 +++-- .../samples_13TeV_RunIIFall15MiniAODv2.py | 4 +- 3 files changed, 43 insertions(+), 16 deletions(-) diff --git a/ObjectStudies/cfg/run_MET_cfg.py b/ObjectStudies/cfg/run_MET_cfg.py index 0ea4a36280fa2..f5616e3b0a207 100644 --- a/ObjectStudies/cfg/run_MET_cfg.py +++ b/ObjectStudies/cfg/run_MET_cfg.py @@ -16,7 +16,7 @@ #-------- HOW TO RUN -test = 23 +test = 19 if test==0: selectedComponents = [DoubleMu_742, DoubleMu_740p9] @@ -136,7 +136,7 @@ ### this is for the Wskim elif test==14: - is1L=False + is1PH=True selectedComponents = [ SingleMuon_Run2015D_16Dec ] for comp in selectedComponents: comp.splitFactor = 1000 @@ -169,23 +169,40 @@ ### this is for the PhotonSkim elif test==16: is1PH=True - if is25ns: - selectedComponents = [ SinglePhoton_Run2015D_16Dec ] - else: - selectedComponents = [ SinglePhoton_Run2015D_16Dec ] ## not sure the 50ns are ready in 76 + selectedComponents = [ SinglePhoton_Run2015D_16Dec ] for comp in selectedComponents: comp.triggers = triggers_photon30 + triggers_photon50 + triggers_photon75 + triggers_photon90 + triggers_photon120 - comp.splitFactor = 1 + comp.splitFactor = 100 comp.files = comp.files[:] - if is25ns: - comp.json = "/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/Reprocessing/Cert_13TeV_16Dec2015ReReco_Collisions15_25ns_JSON.txt" - else: - comp.json = "/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/Reprocessing/Cert_13TeV_16Dec2015ReReco_Collisions15_25ns_JSON.txt" + comp.json = "/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/Reprocessing/Cert_13TeV_16Dec2015ReReco_Collisions15_25ns_JSON.txt" comp.intLumi= 0.04003 - # ------------------------------------------------------------------------------------------- # # --> 25ns MC here +#QCD +elif test==17: + selectedComponents = [QCD_HT100to200, QCD_HT200to300, QCD_HT300to500, QCD_HT_500to700, QCD_HT700to1000,QCD_HT1000to1500,QCD_HT1500to2000,QCD_HT2000toInf] + is1PH=True + for comp in selectedComponents: + comp.splitFactor = 100 + comp.files = comp.files[:] + +# GJets +elif test==18: + selectedComponents = [GJets_HT40to100, GJets_HT100to200, GJets_HT200to400, GJets_HT400to600, GJets_HT600toInf] + is1PH=True + for comp in selectedComponents: + comp.splitFactor = 100 + comp.files = comp.files[:] + +# WG/ZG (MonoPhoton) +elif test==19: + selectedComponents = [ZGJets, WGJets] + is1PH=True + for comp in selectedComponents: + comp.splitFactor = 100 + comp.files = comp.files[:] + elif test==23: isZSkim=True is25ns=True @@ -272,6 +289,10 @@ 'DoubleMu' : triggers_mumu, # [ "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*", "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v*" ] 'DoubleEG' : triggers_ee, # [ "HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*" ] 'Photon30' : triggers_photon30, #["HLT_Photon30_R9Id90_HE10_IsoM_v*"] + 'Photon50' : triggers_photon50, #["HLT_Photon50_R9Id90_HE10_IsoM_v*"] + 'Photon75' : triggers_photon75, #["HLT_Photon75_R9Id90_HE10_IsoM_v*"] + 'Photon90' : triggers_photon90, #["HLT_Photon90_R9Id90_HE10_IsoM_v*"] + 'Photon120': triggers_photon120, #["HLT_Photon120_R9Id90_HE10_IsoM_v*"] } diff --git a/ObjectStudies/python/analyzers/metCoreModules_cff.py b/ObjectStudies/python/analyzers/metCoreModules_cff.py index 423fadc33b25f..2f2f88c157e8a 100644 --- a/ObjectStudies/python/analyzers/metCoreModules_cff.py +++ b/ObjectStudies/python/analyzers/metCoreModules_cff.py @@ -207,15 +207,19 @@ photonAna = cfg.Analyzer( PhotonAnalyzer, name='photonAnalyzer', photons='slimmedPhotons', + doPhotonScaleCorrections=False, ptMin = 30, etaMax = 2.5, - gammaID = "POG_SPRING15_50ns_Tight", + gammaID = "POG_SPRING15_25ns_Tight", rhoPhoton = 'fixedGridRhoFastjetAll', gamma_isoCorr = 'rhoArea', - conversionSafe_eleVeto = False, + doFootprintRemovedIsolation = True, + conversionSafe_eleVeto = True, do_mc_match = False, do_randomCone = False, -) + packedCandidates = 'packedPFCandidates', + footprintRemovedIsolationPUCorr = 'rhoArea', + ) ##------------------------------------------ diff --git a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py index 8599c85e3e17b..58f77280228d0 100644 --- a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py +++ b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py @@ -208,7 +208,7 @@ ### GJets (cross sections from McM) -GJets_HT40to100 = kreator.makeMCComponent("GJets_HT40to100", "/GJets_HT-40To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v3/MINIAODSIM", "CMS", ".*root",23080) +GJets_HT40to100 = kreator.makeMCComponent("GJets_HT40to100", "/GJets_HT-40To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",23080) GJets_HT100to200 = kreator.makeMCComponent("GJets_HT100to200", "/GJets_HT-100To200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",9110) GJets_HT200to400 = kreator.makeMCComponent("GJets_HT200to400", "/GJets_HT-200To400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",2298) # from Adish Vartak, since value in McM is 10xReasonable GJets_HT400to600 = kreator.makeMCComponent("GJets_HT400to600", "/GJets_HT-400To600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",273.) @@ -391,6 +391,8 @@ #VVTo2L2Nu = kreator.makeMCComponent("VVTo2L2Nu","/VVTo2L2Nu_13TeV_amcatnloFXFX_madspin_pythia8/RunIISpring15MiniAODv2-74X_mcRun2_asymptotic_v2-v1/MINIAODSIM", "CMS", ".*root", 12.05) WGToLNuG = kreator.makeMCComponent("WGToLNuG", "/WGToLNuG_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 585.8) +WGJets_MonoPhoton = kreator.makeMCComponent("WGJets_MonoPhoton", "/WGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.6637) +ZGJets = kreator.makeMCComponent("ZGJets", "/ZNuNuGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv1-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.1903) ZGTo2LG = kreator.makeMCComponent("ZGTo2LG", "/ZGTo2LG_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 131.3) WWDouble = kreator.makeMCComponent("WWDouble", "/WW_DoubleScattering_13TeV-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 1.64) From 4b50407d089892a185f43fef1523ff07e0c572d3 Mon Sep 17 00:00:00 2001 From: leonoravesterbacka Date: Tue, 29 Mar 2016 16:12:16 +0200 Subject: [PATCH 2/3] updates for gamma+jets met studies --- ObjectStudies/cfg/run_MET_cfg.py | 8 ++++---- .../python/samples/samples_13TeV_RunIIFall15MiniAODv2.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ObjectStudies/cfg/run_MET_cfg.py b/ObjectStudies/cfg/run_MET_cfg.py index f5616e3b0a207..248a29e451e70 100644 --- a/ObjectStudies/cfg/run_MET_cfg.py +++ b/ObjectStudies/cfg/run_MET_cfg.py @@ -16,7 +16,7 @@ #-------- HOW TO RUN -test = 19 +test = 23 if test==0: selectedComponents = [DoubleMu_742, DoubleMu_740p9] @@ -136,7 +136,7 @@ ### this is for the Wskim elif test==14: - is1PH=True + is1L=False selectedComponents = [ SingleMuon_Run2015D_16Dec ] for comp in selectedComponents: comp.splitFactor = 1000 @@ -189,13 +189,13 @@ # GJets elif test==18: - selectedComponents = [GJets_HT40to100, GJets_HT100to200, GJets_HT200to400, GJets_HT400to600, GJets_HT600toInf] + selectedComponents = [GJets_HT40to100,GJets_HT100to200, GJets_HT200to400, GJets_HT400to600, GJets_HT600toInf] is1PH=True for comp in selectedComponents: comp.splitFactor = 100 comp.files = comp.files[:] -# WG/ZG (MonoPhoton) +# WG/ZG elif test==19: selectedComponents = [ZGJets, WGJets] is1PH=True diff --git a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py index 58f77280228d0..95c773f50c136 100644 --- a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py +++ b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py @@ -208,7 +208,7 @@ ### GJets (cross sections from McM) -GJets_HT40to100 = kreator.makeMCComponent("GJets_HT40to100", "/GJets_HT-40To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",23080) +GJets_HT40to100 = kreator.makeMCComponent("GJets_HT40to100", "/GJets_HT-40To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v3/MINIAODSIM", "CMS", ".*root",23080) GJets_HT100to200 = kreator.makeMCComponent("GJets_HT100to200", "/GJets_HT-100To200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",9110) GJets_HT200to400 = kreator.makeMCComponent("GJets_HT200to400", "/GJets_HT-200To400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",2298) # from Adish Vartak, since value in McM is 10xReasonable GJets_HT400to600 = kreator.makeMCComponent("GJets_HT400to600", "/GJets_HT-400To600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root",273.) @@ -391,7 +391,7 @@ #VVTo2L2Nu = kreator.makeMCComponent("VVTo2L2Nu","/VVTo2L2Nu_13TeV_amcatnloFXFX_madspin_pythia8/RunIISpring15MiniAODv2-74X_mcRun2_asymptotic_v2-v1/MINIAODSIM", "CMS", ".*root", 12.05) WGToLNuG = kreator.makeMCComponent("WGToLNuG", "/WGToLNuG_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 585.8) -WGJets_MonoPhoton = kreator.makeMCComponent("WGJets_MonoPhoton", "/WGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.6637) +WGJets = kreator.makeMCComponent("WGJets_MonoPhoton", "/WGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.6637) ZGJets = kreator.makeMCComponent("ZGJets", "/ZNuNuGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv1-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.1903) ZGTo2LG = kreator.makeMCComponent("ZGTo2LG", "/ZGTo2LG_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 131.3) From 984576f1d689201aa2ac76ac98743459bd49f565 Mon Sep 17 00:00:00 2001 From: leonoravesterbacka Date: Tue, 29 Mar 2016 16:14:24 +0200 Subject: [PATCH 3/3] updates for gamma+jets met studies --- RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py index 95c773f50c136..04966a076165e 100644 --- a/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py +++ b/RootTools/python/samples/samples_13TeV_RunIIFall15MiniAODv2.py @@ -391,7 +391,7 @@ #VVTo2L2Nu = kreator.makeMCComponent("VVTo2L2Nu","/VVTo2L2Nu_13TeV_amcatnloFXFX_madspin_pythia8/RunIISpring15MiniAODv2-74X_mcRun2_asymptotic_v2-v1/MINIAODSIM", "CMS", ".*root", 12.05) WGToLNuG = kreator.makeMCComponent("WGToLNuG", "/WGToLNuG_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 585.8) -WGJets = kreator.makeMCComponent("WGJets_MonoPhoton", "/WGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.6637) +WGJets = kreator.makeMCComponent("WGJets", "/WGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.6637) ZGJets = kreator.makeMCComponent("ZGJets", "/ZNuNuGJets_MonoPhoton_PtG-130_TuneCUETP8M1_13TeV-madgraph/RunIIFall15MiniAODv1-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 0.1903) ZGTo2LG = kreator.makeMCComponent("ZGTo2LG", "/ZGTo2LG_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIFall15MiniAODv2-PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/MINIAODSIM", "CMS", ".*root", 131.3)