From 2c2632c32aff6965bbb3d2515f3c28184d3e8aa6 Mon Sep 17 00:00:00 2001 From: Masato Aoki Date: Mon, 30 Aug 2021 20:16:39 +0200 Subject: [PATCH] bug fix in L1 muon overlap removal --- .../TrigT1/TrigT1MuctpiPhase1/src/MuonSectorProcessor.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Trigger/TrigT1/TrigT1MuctpiPhase1/src/MuonSectorProcessor.cxx b/Trigger/TrigT1/TrigT1MuctpiPhase1/src/MuonSectorProcessor.cxx index 76c6589f9e2..b1582907801 100644 --- a/Trigger/TrigT1/TrigT1MuctpiPhase1/src/MuonSectorProcessor.cxx +++ b/Trigger/TrigT1/TrigT1MuctpiPhase1/src/MuonSectorProcessor.cxx @@ -300,6 +300,9 @@ namespace LVL1MUCTPIPHASE1 { int ptword = sectorData->pt(icand); if (ptword < 0) continue; + // initializing veto flag for the latter removal step + sectorData->veto(icand,0); + for(auto rr : m_overlapHelper->relevant_regions(m_side,sectorName,roiID,isec)) { // for the barrel-barrel overlap removal, only the muons having the phi-overlap flag are considered @@ -317,6 +320,7 @@ namespace LVL1MUCTPIPHASE1 { unsigned i_notRemove = 0; int ptMax = 0; for (unsigned i=0;iveto(candidate_vector.second[i].second)==1 ) continue; // skipping already-flagged candidate int pt = candidate_vector.second[i].first->pt(candidate_vector.second[i].second); if(pt > ptMax){ ptMax = pt; @@ -327,6 +331,7 @@ namespace LVL1MUCTPIPHASE1 { //for each candidate except the highest pt, mark them for removal for (unsigned i=0;iveto(candidate_vector.second[i].second)==1 ) continue; // skipping already-flagged candidate candidate_vector.second[i].first->veto(candidate_vector.second[i].second, (i==i_notRemove)?0:1 ); } } -- GitLab