Skip to content

Commit

Permalink
Merge pull request #40655 from missirol/devel_checkSizeOfL1uGTinBX0
Browse files Browse the repository at this point in the history
improve check on size of L1-uGT digis in `HLTL1TSeed` plugin
  • Loading branch information
cmsbuild committed Feb 1, 2023
2 parents e4e860f + aa69f04 commit 4fd1829
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions HLTrigger/HLTfilters/plugins/HLTL1TSeed.cc
Expand Up @@ -476,10 +476,9 @@ bool HLTL1TSeed::seedsL1TriggerObjectMaps(edm::Event& iEvent, trigger::TriggerFi
}

// check size
if (uGtAlgoBlocks->size() == 0) {
if (uGtAlgoBlocks->isEmpty(0)) {
edm::LogWarning("HLTL1TSeed") << " Warning: GlobalAlgBlkBxCollection with input tag " << m_l1GlobalTag
<< " is empty." << std::endl;

<< " is empty for BX=0.";
return false;
}

Expand Down

0 comments on commit 4fd1829

Please sign in to comment.