From a1fe4adffbee8f6192e50b5bb6f323aa9f500223 Mon Sep 17 00:00:00 2001 From: Santiago Date: Tue, 9 May 2023 10:07:56 +0200 Subject: [PATCH] fix for low-pt fix --- L1Trigger/Configuration/python/SimL1Emulator_cff.py | 3 +-- L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc | 4 ++-- L1Trigger/Phase2L1GMT/python/gmt_cfi.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/L1Trigger/Configuration/python/SimL1Emulator_cff.py b/L1Trigger/Configuration/python/SimL1Emulator_cff.py index f39779d30271d..4233726180949 100644 --- a/L1Trigger/Configuration/python/SimL1Emulator_cff.py +++ b/L1Trigger/Configuration/python/SimL1Emulator_cff.py @@ -145,8 +145,7 @@ _phase2_siml1emulator.add( l1tSAMuonsGmt ) ## fix for low-pt muons, this collection is a copy of the l1tTkMuonsGmt collection -## in which we only keep those low pt muons with an SA muon associated to it. Threshold -## for this cutoff is configurable. +## in which we only keep those low pt muons with an SA muon associated to it. l1tTkMuonsGmtLowPtFix = l1tGMTFilteredMuons.clone() _phase2_siml1emulator.add( l1tTkMuonsGmtLowPtFix ) diff --git a/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc b/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc index a9077b37ee8cf..27af2c842c44f 100644 --- a/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc +++ b/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc @@ -39,7 +39,7 @@ Phase2L1TGMTFilter::Phase2L1TGMTFilter(const edm::ParameterSet& iConfig) applyLowPtFilter_(iConfig.getParameter("applyLowPtFilter")), ptBarrelMin_(iConfig.getParameter("ptBarrelMin")), ptEndcapMin_(iConfig.getParameter("ptEndcapMin")) { - produces >("l1tTkMuonsGmtLowPtFix"); + produces >("l1tTkMuonsGmtLowPtFix").setBranchAlias("l1tTkMuonsGmtLowPtFix"); } Phase2L1TGMTFilter::~Phase2L1TGMTFilter() { @@ -81,7 +81,7 @@ void Phase2L1TGMTFilter::produce(edm::Event& iEvent, const edm::EventSetup& iSet // store results std::unique_ptr > out1 = std::make_unique >(out); - iEvent.put(std::move(out1)); + iEvent.put(std::move(out1),"l1tTkMuonsGmtLowPtFix"); } // ------------ method called once each stream before processing any runs, lumis or events ------------ diff --git a/L1Trigger/Phase2L1GMT/python/gmt_cfi.py b/L1Trigger/Phase2L1GMT/python/gmt_cfi.py index f9a7b65b353b3..1b9272bfad128 100644 --- a/L1Trigger/Phase2L1GMT/python/gmt_cfi.py +++ b/L1Trigger/Phase2L1GMT/python/gmt_cfi.py @@ -79,7 +79,7 @@ l1tGMTFilteredMuons = cms.EDProducer('Phase2L1TGMTFilter', srcMuons = cms.InputTag("l1tTkMuonsGmt",""), - applyLowPtFilter = cms.bool(True), + applyLowPtFilter = cms.bool(True), ptBarrelMin = cms.int32(8), ptEndcapMin = cms.int32(8) )