Skip to content

Commit

Permalink
Puppi XY corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wassmer committed Jun 22, 2022
1 parent 4bf300b commit c4b6a5c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand Down
30 changes: 30 additions & 0 deletions PhysicsTools/PatUtils/python/patPFMETCorrections_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit c4b6a5c

Please sign in to comment.