From f45c5fb39b52d92fa2728da49c7f44d27f7ed304 Mon Sep 17 00:00:00 2001 From: lathomasexport Date: Thu, 12 Aug 2021 17:14:40 +0200 Subject: [PATCH] Bug fix for track MET in miniAOD tools --- .../PatUtils/python/tools/runMETCorrectionsAndUncertainties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py b/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py index 1bcf4c4a7d4e0..e4af61c9f3a95 100644 --- a/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py +++ b/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py @@ -1728,7 +1728,7 @@ def miniAODConfigurationPre(self, process, patMetModuleSequence, pfCandCollectio patMetModuleSequence += getattr(process, "pfMetCHS") patMetModuleSequence += getattr(process, "patCHSMet") - pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("fromPV(0) > 0 && charge()!=0")) + pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("pvAssociationQuality()>=4 && charge()!=0 && vertexRef().key()==0")) addToProcessAndTask("pfTrk", pfTrk, process, task) pfMetTrk = pfMet.clone(src = 'pfTrk') addToProcessAndTask("pfMetTrk", pfMetTrk, process, task)