Skip to content

Commit

Permalink
make eta parameter configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
folguera committed May 24, 2023
1 parent d39280c commit b6a2d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,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()) {
Expand Down
4 changes: 3 additions & 1 deletion L1Trigger/Phase2L1GMT/python/gmt_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

)


Expand Down

0 comments on commit b6a2d43

Please sign in to comment.