diff --git a/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc b/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc index a1ef355ad98e6..ea0d9617e7cb7 100644 --- a/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc +++ b/L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc @@ -32,13 +32,15 @@ class Phase2L1TGMTFilter : public edm::stream::EDProducer<> { bool applyLowPtFilter_; int ptBarrelMin_; int ptEndcapMin_; + double etaBE_; }; Phase2L1TGMTFilter::Phase2L1TGMTFilter(const edm::ParameterSet& iConfig) : srcMuons_(consumes >(iConfig.getParameter("srcMuons"))), applyLowPtFilter_(iConfig.getParameter("applyLowPtFilter")), ptBarrelMin_(iConfig.getParameter("ptBarrelMin")), - ptEndcapMin_(iConfig.getParameter("ptEndcapMin")) { + ptEndcapMin_(iConfig.getParameter("ptEndcapMin")), + etaBE_(iConfig.getParameter("etaBE")) { produces >("l1tTkMuonsGmtLowPtFix").setBranchAlias("tkMuLowPtFix"); } @@ -63,8 +65,8 @@ void Phase2L1TGMTFilter::produce(edm::Event& iEvent, const edm::EventSetup& iSet auto mu = muonHandle->at(i); bool noSAMatch = true; if (applyLowPtFilter_) { - if ((fabs(mu.phEta()) < 0.9 && mu.phPt() < ptBarrelMin_) || - (fabs(mu.phEta()) > 0.9 && mu.phPt() < ptEndcapMin_)) { + if ((fabs(mu.phEta()) < etaBE_ && mu.phPt() < ptBarrelMin_) || + (fabs(mu.phEta()) > etaBE_ && mu.phPt() < ptEndcapMin_)) { // if quality is already set to 0 don't continue the loop. for (const auto& r : mu.muonRef()) { if (r.isNonnull()) { diff --git a/L1Trigger/Phase2L1GMT/python/gmt_cfi.py b/L1Trigger/Phase2L1GMT/python/gmt_cfi.py index 1b9272bfad128..0c2008095889a 100644 --- a/L1Trigger/Phase2L1GMT/python/gmt_cfi.py +++ b/L1Trigger/Phase2L1GMT/python/gmt_cfi.py @@ -81,7 +81,9 @@ srcMuons = cms.InputTag("l1tTkMuonsGmt",""), applyLowPtFilter = cms.bool(True), ptBarrelMin = cms.int32(8), - ptEndcapMin = cms.int32(8) + ptEndcapMin = cms.int32(8), + etaBE = cms.double(0.9) + )