Skip to content

Commit

Permalink
Merge pull request #44707 from hqucms/pr/backport-44335
Browse files Browse the repository at this point in the history
[14_0_X] backport of 44335 (slimmedMETsNoHF and possible cleanup)
  • Loading branch information
cmsbuild authored Apr 18, 2024
2 parents a682e37 + ba9712d commit f3de8c4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 26 deletions.
4 changes: 2 additions & 2 deletions DQM/Physics/python/singleTopDQM_miniAOD_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
muons = cms.InputTag("slimmedMuons"),
elecs = cms.InputTag("slimmedElectrons"),
jets = cms.InputTag("slimmedJets"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsNoHF", "slimmedMETsPuppi"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsPuppi"),
pvs = cms.InputTag("offlineSlimmedPrimaryVertices")
),

Expand Down Expand Up @@ -118,7 +118,7 @@
muons = cms.InputTag("slimmedMuons"),
elecs = cms.InputTag("slimmedElectrons"),
jets = cms.InputTag("slimmedJets"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsNoHF", "slimmedMETsPuppi"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsPuppi"),
pvs = cms.InputTag("offlineSlimmedPrimaryVertices")

),
Expand Down
4 changes: 2 additions & 2 deletions DQM/Physics/python/topSingleLeptonDQM_miniAOD_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
muons = cms.InputTag("slimmedMuons"),
elecs = cms.InputTag("slimmedElectrons"),
jets = cms.InputTag("slimmedJets"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsNoHF", "slimmedMETsPuppi"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsPuppi"),
pvs = cms.InputTag("offlineSlimmedPrimaryVertices")

),
Expand Down Expand Up @@ -126,7 +126,7 @@
muons = cms.InputTag("slimmedMuons"),
elecs = cms.InputTag("slimmedElectrons"),
jets = cms.InputTag("slimmedJets"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsNoHF", "slimmedMETsPuppi"),
mets = cms.VInputTag("slimmedMETs", "slimmedMETsPuppi"),
pvs = cms.InputTag("offlineSlimmedPrimaryVertices")

),
Expand Down
3 changes: 0 additions & 3 deletions DQM/Physics/src/SingleTopTChannelLeptonDQM_miniAOD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ namespace SingleTopTChannelLepton_miniAOD {
// pt of the 4. leading jet (corrected to L2+L3)
//hists_["jet4Pt_"] = ibooker.book1D("Jet4Pt", "pt_{30,loose}(jet4)", 60, 0., 300.);
// MET (tc)
hists_["slimmedMETsNoHF_"] = ibooker.book1D("slimmedMETsNoHF", "MET_{slimmedNoHF}", 40, 0., 200.);
// MET (pflow)
hists_["slimmedMETsPuppi_"] = ibooker.book1D("slimmedMETsPuppi", "MET_{slimmedPuppi}", 40, 0., 200.);
// dz for muons (to suppress cosmis)
Expand Down Expand Up @@ -666,8 +665,6 @@ namespace SingleTopTChannelLepton_miniAOD {
unsigned int idx = met_ - mets_.begin();
if (idx == 0)
fill("slimmedMETs_", met->begin()->et());
if (idx == 1)
fill("slimmedMETsNoHF_", met->begin()->et());
if (idx == 2)
fill("slimmedMETsPuppi_", met->begin()->et());
}
Expand Down
3 changes: 0 additions & 3 deletions DQM/Physics/src/TopSingleLeptonDQM_miniAOD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ namespace TopSingleLepton_miniAOD {
// pt of the 4. leading jet (corrected to L2+L3)
hists_["jet4Pt_"] = ibooker.book1D("Jet4Pt", "pt_{30,loose}(jet4)", 60, 0., 300.);
// MET (tc)
hists_["slimmedMETsNoHF_"] = ibooker.book1D("slimmedMETsNoHF", "MET_{slimmedNoHF}", 40, 0., 200.);
// MET (pflow)
hists_["slimmedMETsPuppi_"] = ibooker.book1D("slimmedMETsPuppi", "MET_{slimmedPuppi}", 40, 0., 200.);
// dz for muons (to suppress cosmis)
Expand Down Expand Up @@ -639,8 +638,6 @@ namespace TopSingleLepton_miniAOD {
unsigned int idx = met_ - mets_.begin();
if (idx == 0)
fill("slimmedMETs_", met->begin()->et());
if (idx == 1)
fill("slimmedMETsNoHF_", met->begin()->et());
if (idx == 2)
fill("slimmedMETsPuppi_", met->begin()->et());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
'drop recoBaseTagInfosOwned_slimmedJetsAK8_*_*',
'keep *_slimmedJetsPuppi_*_*',
'keep *_slimmedMETs_*_*',
'keep *_slimmedMETsNoHF_*_*',
'keep *_slimmedMETsPuppi_*_*',
'keep *_slimmedSecondaryVertices_*_*',
'keep *_slimmedLambdaVertices_*_*',
Expand Down
14 changes: 0 additions & 14 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,6 @@ def _applySubstructure(process):
task.add(process.slimmedMETs)
(~pp_on_AA).toModify(process.slimmedMETs, addDeepMETs = True)

def _add_slimmedMETsNoHF(process):
addToProcessAndTask('slimmedMETsNoHF', process.slimmedMETs.clone(), process, task)
process.slimmedMETsNoHF.src = cms.InputTag("patMETsNoHF")
process.slimmedMETsNoHF.rawVariation = cms.InputTag("patPFMetNoHF")
process.slimmedMETsNoHF.t1Uncertainties = cms.InputTag("patPFMetT1%sNoHF")
process.slimmedMETsNoHF.t01Variation = cms.InputTag("patPFMetT0pcT1NoHF")
process.slimmedMETsNoHF.t1SmearedVarsAndUncs = cms.InputTag("patPFMetT1Smear%sNoHF")
process.slimmedMETsNoHF.tXYUncForRaw = cms.InputTag("patPFMetTxyNoHF")
process.slimmedMETsNoHF.tXYUncForT1 = cms.InputTag("patPFMetT1TxyNoHF")
process.slimmedMETsNoHF.tXYUncForT01 = cms.InputTag("patPFMetT0pcT1TxyNoHF")
process.slimmedMETsNoHF.tXYUncForT1Smear = cms.InputTag("patPFMetT1SmearTxyNoHF")
process.slimmedMETsNoHF.tXYUncForT01Smear = cms.InputTag("patPFMetT0pcT1SmearTxyNoHF")
del process.slimmedMETsNoHF.caloMET
(~pp_on_AA).toModify(process, _add_slimmedMETsNoHF)
# ================== NoHF pfMET

# ================== CHSMET
Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/PatAlgos/test/corMETFromMiniAOD.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
compressionAlgorithm = cms.untracked.string('LZMA'),
eventAutoFlushCompressedSize = cms.untracked.int32(15728640),
outputCommands = cms.untracked.vstring( "keep *_slimmedMETs_*_*",
"keep *_slimmedMETsNoHF_*_*",
"keep *_patPFMet_*_*",
"keep *_patPFMetT1_*_*",
"keep *_patPFMetT1JetResDown_*_*",
Expand Down

0 comments on commit f3de8c4

Please sign in to comment.