Skip to content

Commit

Permalink
Merge pull request #41576 from missirol/devel_hltPrescalerEmptyBX0Check
Browse files Browse the repository at this point in the history
improve how `HLTPrescaler` checks presence of (Stage-2) L1-uGT results [`13_1_X`]
  • Loading branch information
cmsbuild committed May 10, 2023
2 parents 0e42674 + b00b191 commit 940068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HLTrigger/HLTcore/plugins/HLTPrescaler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool HLTPrescaler::filter(edm::Event& iEvent, const edm::EventSetup&) {
edm::Handle<GlobalAlgBlkBxCollection> handle2;
iEvent.getByToken(gtDigi2Token_, handle2);
if (handle2.isValid()) {
if (handle2->begin(0) != handle2->end(0)) {
if (not handle2->isEmpty(0)) {
prescaleSet_ = static_cast<unsigned int>(handle2->begin(0)->getPreScColumn());
prescaleFactor_ = prescaleService_->getPrescale(prescaleSet_, pathName);
} else {
Expand Down

0 comments on commit 940068d

Please sign in to comment.