Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Muon Quality to 12 #13548

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions L1Trigger/L1TMuon/plugins/L1TMuonQualityAdjuster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ L1TMuonQualityAdjuster::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
filteredBMTFMuons->setBXRange(bmtfMuons->getFirstBX(), bmtfMuons->getLastBX());
for (int bx = bmtfMuons->getFirstBX(); bx <= bmtfMuons->getLastBX(); ++bx) {
for (auto mu = bmtfMuons->begin(bx); mu != bmtfMuons->end(bx); ++mu) {
int newqual = 1;
int newqual = 12;
l1t::RegionalMuonCand newMu((*mu));
newMu.setHwQual(newqual);
filteredBMTFMuons->push_back(bx+m_bmtfBxOffset, newMu);
Expand All @@ -135,7 +135,7 @@ L1TMuonQualityAdjuster::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
for (int bx = emtfMuons->getFirstBX(); bx <= emtfMuons->getLastBX(); ++bx) {
for (auto mu = emtfMuons->begin(bx); mu != emtfMuons->end(bx); ++mu) {
int newqual = 0;
if (mu->hwQual() == 11 || mu->hwQual() > 12) newqual=1;
if (mu->hwQual() == 11 || mu->hwQual() > 12) newqual=12;
l1t::RegionalMuonCand newMu((*mu));
newMu.setHwQual(newqual);
filteredEMTFMuons->push_back(bx, newMu);
Expand All @@ -150,7 +150,7 @@ L1TMuonQualityAdjuster::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
for (int bx = omtfMuons->getFirstBX(); bx <= omtfMuons->getLastBX(); ++bx) {
for (auto mu = omtfMuons->begin(bx); mu != omtfMuons->end(bx); ++mu) {
int newqual = 0;
if (mu->hwQual() > 0) newqual = 1;
if (mu->hwQual() > 0) newqual = 12;
l1t::RegionalMuonCand newMu((*mu));
newMu.setHwQual(newqual);
filteredOMTFMuons->push_back(bx, newMu);
Expand Down