Skip to content

Commit

Permalink
improve how HLTPrescaler checks presence of (Stage-2) L1-uGT results
Browse files Browse the repository at this point in the history
  • Loading branch information
missirol committed May 6, 2023
1 parent 21ff8f0 commit b00b191
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 b00b191

Please sign in to comment.