From c4b6a5cc46ab754cbfa974428f72f02de8d99888 Mon Sep 17 00:00:00 2001 From: Michael Wassmer Date: Tue, 29 Mar 2022 14:02:34 +0200 Subject: [PATCH] Puppi XY corrections --- .../multPhiCorr_Puppi_Run2_ULDATA_cfi.py | 34 +++++++++---------- .../python/patPFMETCorrections_cff.py | 30 ++++++++++++++++ 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/JetMETCorrections/Type1MET/python/multPhiCorr_Puppi_Run2_ULDATA_cfi.py b/JetMETCorrections/Type1MET/python/multPhiCorr_Puppi_Run2_ULDATA_cfi.py index 63130c19d566c..5c5657de833b5 100644 --- a/JetMETCorrections/Type1MET/python/multPhiCorr_Puppi_Run2_ULDATA_cfi.py +++ b/JetMETCorrections/Type1MET/python/multPhiCorr_Puppi_Run2_ULDATA_cfi.py @@ -1,7 +1,7 @@ import FWCore.ParameterSet.Config as cms # ULDATA 2018A corrections -multPhiCorr_ULDATA2018A = cms.VPSet( +multPhiCorr_Puppi_ULDATA2018A = cms.VPSet( cms.PSet( name=cms.string("ULDATA2018A"), type=cms.int32(0), @@ -16,7 +16,7 @@ ) # ULDATA 2018B corrections -multPhiCorr_ULDATA2018B = cms.VPSet( +multPhiCorr_Puppi_ULDATA2018B = cms.VPSet( cms.PSet( name=cms.string("ULDATA2018B"), type=cms.int32(0), @@ -31,7 +31,7 @@ ) # ULDATA 2018C corrections -multPhiCorr_ULDATA2018C = cms.VPSet( +multPhiCorr_Puppi_ULDATA2018C = cms.VPSet( cms.PSet( name=cms.string("ULDATA2018C"), type=cms.int32(0), @@ -46,7 +46,7 @@ ) # ULDATA 2018D corrections -multPhiCorr_ULDATA2018D = cms.VPSet( +multPhiCorr_Puppi_ULDATA2018D = cms.VPSet( cms.PSet( name=cms.string("ULDATA2018D"), type=cms.int32(0), @@ -61,7 +61,7 @@ ) # ULDATA 2017B corrections -multPhiCorr_ULDATA2017B = cms.VPSet( +multPhiCorr_Puppi_ULDATA2017B = cms.VPSet( cms.PSet( name=cms.string("ULDATA2017B"), type=cms.int32(0), @@ -76,7 +76,7 @@ ) # ULDATA 2017C corrections -multPhiCorr_ULDATA2017C = cms.VPSet( +multPhiCorr_Puppi_ULDATA2017C = cms.VPSet( cms.PSet( name=cms.string("ULDATA2017C"), type=cms.int32(0), @@ -91,7 +91,7 @@ ) # ULDATA 2017D corrections -multPhiCorr_ULDATA2017D = cms.VPSet( +multPhiCorr_Puppi_ULDATA2017D = cms.VPSet( cms.PSet( name=cms.string("ULDATA2017D"), type=cms.int32(0), @@ -106,7 +106,7 @@ ) # ULDATA 2017E corrections -multPhiCorr_ULDATA2017E = cms.VPSet( +multPhiCorr_Puppi_ULDATA2017E = cms.VPSet( cms.PSet( name=cms.string("ULDATA2017E"), type=cms.int32(0), @@ -121,7 +121,7 @@ ) # ULDATA 2017F corrections -multPhiCorr_ULDATA2017F = cms.VPSet( +multPhiCorr_Puppi_ULDATA2017F = cms.VPSet( cms.PSet( name=cms.string("ULDATA2017F"), type=cms.int32(0), @@ -136,7 +136,7 @@ ) # ULDATA 2016preVFPB corrections -multPhiCorr_ULDATA2016preVFPB = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016preVFPB = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016preVFPB"), type=cms.int32(0), @@ -151,7 +151,7 @@ ) # ULDATA 2016preVFPC corrections -multPhiCorr_ULDATA2016preVFPC = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016preVFPC = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016preVFPC"), type=cms.int32(0), @@ -166,7 +166,7 @@ ) # ULDATA 2016preVFPD corrections -multPhiCorr_ULDATA2016preVFPD = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016preVFPD = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016preVFPD"), type=cms.int32(0), @@ -181,7 +181,7 @@ ) # ULDATA 2016preVFPE corrections -multPhiCorr_ULDATA2016preVFPE = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016preVFPE = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016preVFPE"), type=cms.int32(0), @@ -196,7 +196,7 @@ ) # ULDATA 2016preVFPF corrections -multPhiCorr_ULDATA2016preVFPF = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016preVFPF = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016preVFPF"), type=cms.int32(0), @@ -211,7 +211,7 @@ ) # ULDATA 2016ostVFPF corrections -multPhiCorr_ULDATA2016postVFPF = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016postVFPF = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016postVFPF"), type=cms.int32(0), @@ -226,7 +226,7 @@ ) # ULDATA 2016ostVFPG corrections -multPhiCorr_ULDATA2016postVFPG = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016postVFPG = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016postVFPG"), type=cms.int32(0), @@ -241,7 +241,7 @@ ) # ULDATA 2016ostVFPH corrections -multPhiCorr_ULDATA2016postVFPH = cms.VPSet( +multPhiCorr_Puppi_ULDATA2016postVFPH = cms.VPSet( cms.PSet( name=cms.string("ULDATA2016postVFPH"), type=cms.int32(0), diff --git a/PhysicsTools/PatUtils/python/patPFMETCorrections_cff.py b/PhysicsTools/PatUtils/python/patPFMETCorrections_cff.py index 2615d9a88ac4b..12aedf96a3115 100644 --- a/PhysicsTools/PatUtils/python/patPFMETCorrections_cff.py +++ b/PhysicsTools/PatUtils/python/patPFMETCorrections_cff.py @@ -94,7 +94,10 @@ # Run2 UL MC XY(Type1 PFMET Phi) corrections import JetMETCorrections.Type1MET.multPhiCorr_Run2_ULMC_cfi as multPhiCorrParams_Run2_ULMC import JetMETCorrections.Type1MET.multPhiCorr_Run2_ULDATA_cfi as multPhiCorrParams_Run2_ULDATA +import JetMETCorrections.Type1MET.multPhiCorr_Puppi_Run2_ULMC_cfi as multPhiCorrParams_Puppi_Run2_ULMC +import JetMETCorrections.Type1MET.multPhiCorr_Puppi_Run2_ULDATA_cfi as multPhiCorrParams_Puppi_Run2_ULDATA +# PFMET XY corrections patMultPhiCorrParams_ULMC2018 = multPhiCorrParams_Run2_ULMC.multPhiCorr_ULMC2018 patMultPhiCorrParams_ULMC2017 = multPhiCorrParams_Run2_ULMC.multPhiCorr_ULMC2017 patMultPhiCorrParams_ULMC2016preVFP = multPhiCorrParams_Run2_ULMC.multPhiCorr_ULMC2016preVFP @@ -121,6 +124,33 @@ patMultPhiCorrParams_ULDATA2016postVFPG = multPhiCorrParams_Run2_ULDATA.multPhiCorr_ULDATA2016postVFPG patMultPhiCorrParams_ULDATA2016postVFPH = multPhiCorrParams_Run2_ULDATA.multPhiCorr_ULDATA2016postVFPH +# PuppiMET XY corrections +patMultPhiCorrParams_Puppi_ULMC2018 = multPhiCorrParams_Puppi_Run2_ULMC.multPhiCorr_Puppi_ULMC2018 +patMultPhiCorrParams_Puppi_ULMC2017 = multPhiCorrParams_Puppi_Run2_ULMC.multPhiCorr_Puppi_ULMC2017 +patMultPhiCorrParams_Puppi_ULMC2016preVFP = multPhiCorrParams_Puppi_Run2_ULMC.multPhiCorr_Puppi_ULMC2016preVFP +patMultPhiCorrParams_Puppi_ULMC2016postVFP = multPhiCorrParams_Puppi_Run2_ULMC.multPhiCorr_Puppi_ULMC2016postVFP + +patMultPhiCorrParams_Puppi_ULDATA2018A = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2018A +patMultPhiCorrParams_Puppi_ULDATA2018B = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2018B +patMultPhiCorrParams_Puppi_ULDATA2018C = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2018C +patMultPhiCorrParams_Puppi_ULDATA2018D = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2018D + +patMultPhiCorrParams_Puppi_ULDATA2017B = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2017B +patMultPhiCorrParams_Puppi_ULDATA2017C = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2017C +patMultPhiCorrParams_Puppi_ULDATA2017D = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2017D +patMultPhiCorrParams_Puppi_ULDATA2017E = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2017E +patMultPhiCorrParams_Puppi_ULDATA2017F = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2017F + +patMultPhiCorrParams_Puppi_ULDATA2016preVFPB = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016preVFPB +patMultPhiCorrParams_Puppi_ULDATA2016preVFPC = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016preVFPC +patMultPhiCorrParams_Puppi_ULDATA2016preVFPD = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016preVFPD +patMultPhiCorrParams_Puppi_ULDATA2016preVFPE = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016preVFPE +patMultPhiCorrParams_Puppi_ULDATA2016preVFPF = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016preVFPF + +patMultPhiCorrParams_Puppi_ULDATA2016postVFPF = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016postVFPF +patMultPhiCorrParams_Puppi_ULDATA2016postVFPG = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016postVFPG +patMultPhiCorrParams_Puppi_ULDATA2016postVFPH = multPhiCorrParams_Puppi_Run2_ULDATA.multPhiCorr_Puppi_ULDATA2016postVFPH + patPFMetTxyCorrTask = cms.Task(patPFMetTxyCorr) patPFMetTxyCorrSequence = cms.Sequence(patPFMetTxyCorrTask)