From 1299f145fc9b51df0584c2a35eefcb7f1b1e834f Mon Sep 17 00:00:00 2001 From: Francesco Tenchini Date: Mon, 11 Mar 2024 17:29:55 +0100 Subject: [PATCH 1/3] Reduced the general track cut from 15 to 10 GeV --- PhysicsTools/NanoAOD/python/generalTracks_cff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicsTools/NanoAOD/python/generalTracks_cff.py b/PhysicsTools/NanoAOD/python/generalTracks_cff.py index b3372788de791..df2b2fd66982f 100644 --- a/PhysicsTools/NanoAOD/python/generalTracks_cff.py +++ b/PhysicsTools/NanoAOD/python/generalTracks_cff.py @@ -3,9 +3,9 @@ generalTrackTable = cms.EDProducer("SimpleTrackFlatTableProducer", src = cms.InputTag("generalTracks"), - cut = cms.string("pt > 15"), # filtered already above + cut = cms.string("pt > 10"), # filtered already above name = cms.string("Track"), - doc = cms.string("General tracks with pt > 15 GeV"), + doc = cms.string("General tracks with pt > 10 GeV"), singleton = cms.bool(False), # the number of entries is variable extension = cms.bool(False), # this is the main table for the muons variables = cms.PSet(P3Vars, From e467a35a0fe26eb24e493509330b4ceecb988b9e Mon Sep 17 00:00:00 2001 From: yongbinfeng Date: Thu, 14 Mar 2024 14:57:31 -0500 Subject: [PATCH 2/3] change failIfInvalidXML to false to prevent bkg sample crashing --- PhysicsTools/NanoAOD/python/genWeights_cff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PhysicsTools/NanoAOD/python/genWeights_cff.py b/PhysicsTools/NanoAOD/python/genWeights_cff.py index dab0ed2f8685e..29019860de554 100644 --- a/PhysicsTools/NanoAOD/python/genWeights_cff.py +++ b/PhysicsTools/NanoAOD/python/genWeights_cff.py @@ -7,6 +7,8 @@ lheWeightsNano = lheWeights.clone() lheWeightsNano.weightProductLabels = ["lheWeights"] +# fix for crashing for bkg samples +lheWeightsNano.failIfInvalidXML = cms.untracked.bool(False) genWeightsTable = cms.EDProducer("GenWeightsTableProducer", lheWeightPrecision = cms.int32(14), From f9d6c5f037c554cad64607fa757f543cbbb09279 Mon Sep 17 00:00:00 2001 From: Josh Bendavid Date: Fri, 15 Mar 2024 16:07:10 +0100 Subject: [PATCH 3/3] Remove pt cut for track refit --- PhysicsTools/NanoAOD/python/muons_cff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhysicsTools/NanoAOD/python/muons_cff.py b/PhysicsTools/NanoAOD/python/muons_cff.py index 77ebed86c986b..5dca80c8886a4 100644 --- a/PhysicsTools/NanoAOD/python/muons_cff.py +++ b/PhysicsTools/NanoAOD/python/muons_cff.py @@ -124,7 +124,7 @@ tracksfrommuons = cms.EDProducer("TrackProducerFromPatMuons", src = cms.InputTag("linkedObjects", "muons"), innerTrackOnly = cms.bool(False), - ptMin = cms.double(8.), + ptMin = cms.double(-1.), ) trackrefit = cms.EDProducer('ResidualGlobalCorrectionMakerG4e',