From 35924d0a064bba9fd0878ebc3ee8fce54b5452e0 Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 15 May 2022 15:41:05 +0200 Subject: [PATCH 1/2] Add Run2_2016_HIPM to the excluded eras for displaced muons --- .../PatAlgos/python/producersLayer1/patCandidates_cff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py b/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py index 1286dca89bbfd..ea4f78a06b9b4 100644 --- a/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py +++ b/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py @@ -53,9 +53,9 @@ func = lambda list: list.remove(cms.InputTag("patLowPtElectrons")) ) from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL -(pp_on_AA | _mAOD | run2_miniAOD_UL).toReplaceWith(patCandidatesTask, +(pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(patCandidatesTask, patCandidatesTask.copyAndExclude([makePatDisplacedMuonsTask])) -(pp_on_AA | _mAOD | run2_miniAOD_UL).toModify(patCandidateSummary.candidates, +(pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toModify(patCandidateSummary.candidates, func = lambda list: list.remove(cms.InputTag("patDisplacedMuons")) ) from Configuration.Eras.Modifier_fastSim_cff import fastSim From fd4aed03a3dfba986880ce71837ee80d2ecc5b75 Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 15 May 2022 15:51:59 +0200 Subject: [PATCH 2/2] Add Run2_2016_HIPM to the excluded eras for displaced muons --- .../PatAlgos/python/producersLayer1/patCandidates_cff.py | 1 + .../python/selectionLayer1/selectedPatCandidates_cff.py | 5 +++-- PhysicsTools/PatAlgos/python/slimming/slimming_cff.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py b/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py index ea4f78a06b9b4..9f7eadf7b8a97 100644 --- a/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py +++ b/PhysicsTools/PatAlgos/python/producersLayer1/patCandidates_cff.py @@ -53,6 +53,7 @@ func = lambda list: list.remove(cms.InputTag("patLowPtElectrons")) ) from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL +from Configuration.Eras.Era_Run2_2016_HIPM_cff import Run2_2016_HIPM (pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(patCandidatesTask, patCandidatesTask.copyAndExclude([makePatDisplacedMuonsTask])) (pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toModify(patCandidateSummary.candidates, diff --git a/PhysicsTools/PatAlgos/python/selectionLayer1/selectedPatCandidates_cff.py b/PhysicsTools/PatAlgos/python/selectionLayer1/selectedPatCandidates_cff.py index e4a4d968ac500..5bd4246b61d63 100644 --- a/PhysicsTools/PatAlgos/python/selectionLayer1/selectedPatCandidates_cff.py +++ b/PhysicsTools/PatAlgos/python/selectionLayer1/selectedPatCandidates_cff.py @@ -51,9 +51,10 @@ func = lambda list: list.remove(cms.InputTag("selectedPatLowPtElectrons")) ) from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL -(pp_on_AA | _mAOD | run2_miniAOD_UL).toReplaceWith(selectedPatCandidatesTask, +from Configuration.Eras.Era_Run2_2016_HIPM_cff import Run2_2016_HIPM +(pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatDisplacedMuons])) -(pp_on_AA | _mAOD | run2_miniAOD_UL).toModify(selectedPatCandidateSummary.candidates, +(pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toModify(selectedPatCandidateSummary.candidates, func = lambda list: list.remove(cms.InputTag("selectedPatDisplacedMuons")) ) from Configuration.Eras.Modifier_fastSim_cff import fastSim diff --git a/PhysicsTools/PatAlgos/python/slimming/slimming_cff.py b/PhysicsTools/PatAlgos/python/slimming/slimming_cff.py index 93cbe37662db9..96c66f029df06 100644 --- a/PhysicsTools/PatAlgos/python/slimming/slimming_cff.py +++ b/PhysicsTools/PatAlgos/python/slimming/slimming_cff.py @@ -80,7 +80,8 @@ slimmingTask.copyAndExclude([slimmedLowPtElectronsTask])) from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL -(pp_on_AA | _mAOD | run2_miniAOD_UL).toReplaceWith(slimmingTask, +from Configuration.Eras.Era_Run2_2016_HIPM_cff import Run2_2016_HIPM +(pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras])) from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi import hiPixelTracks