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

guard against no L1T uGT digis in L1TriggerResultsConverter #40528

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

missirol
Copy link
Contributor

@missirol missirol commented Jan 16, 2023

PR description:

This PR fixes the edge case reported in #40494. It adds a check on the size of the L1T uGT digis, returning false for all L1T algorithms when said input collection has 0 elements for the relevant BX (see #40528 (comment) for details).

PR validation:

Fixes the crash reproduced from the instructions in #40494 (tested in 13_0_X):

cmsDriver.py RECO --conditions 124X_dataRun3_Prompt_v4 --customise Configuration/DataProcessing/Utils.addMonitoring \
--datatier NANOAOD --era Run3 --eventcontent NANOEDMAOD \
--filein /store/data/Run2022G/MinimumBias/MINIAOD/PromptReco-v1/000/362/859/00000/948464c4-75ad-41a3-95d0-82e31c865b10.root \
--fileout "file:ReReco-Run2022G-MinimumBias-PromptNanoAODv10_v1-00001.root" --nThreads 1 --number -1 \
--python_filename "ReReco-Run2022G-MinimumBias-PromptNanoAODv10_v1-00001_0_cfg.py" --scenario pp --step NANO --data

If this PR is a backport, please specify the original PR and why you need to backport that PR. If this PR will be backported, please specify to which release cycle the backport is meant for:

TBD

@missirol
Copy link
Contributor Author

type bugfix

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40528/33739

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @missirol (Marino Missiroli) for master.

It involves the following packages:

  • PhysicsTools/NanoAOD (xpog)

@cmsbuild, @swertz, @vlimant can you please review it and eventually sign? Thanks.
@gpetruc this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@missirol
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d919dc/30005/summary.html
COMMIT: 33f7784
CMSSW: CMSSW_13_0_X_2023-01-16-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40528/30005/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
11634.15 step 3
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555538
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555510
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@missirol
Copy link
Contributor Author

@cms-sw/xpog-l2

Can you please review this PR?

@vlimant
Copy link
Contributor

vlimant commented Jan 19, 2023

see comments above

@missirol
Copy link
Contributor Author

there are no comments, maybe you didnt hit 'finish review'

const std::vector<bool>* wordp = nullptr;
bool unprefireable_bit = false;
if (!legacyL1_) {
const auto& resultsProd = iEvent.get(token_);
wordp = &resultsProd.at(0, 0).getAlgoDecisionFinal();
if (resultsProd.size() > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it happened that resultsProd.size() is non zero and resultsProd.size(0) is ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.. I don't know (maybe @cms-sw/l1-l2 knows?), and I had the same doubt.

I used size to be consistent with

if (handleExtResults->size() != 0) {

and similar cases seen elsewhere
if (uGtAlgoBlocks->size() == 0) {

but now I also see cases where the 0 is explicitly used
if (not bxvector.isEmpty(0)) {

I think the correct call is size(0) (actually, isEmpty(0) is sufficient and a bit cheaper), so I switched to that, for both resultsProd and handleExtResults.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40528/33812

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40528 was updated. @cmsbuild, @swertz, @vlimant can you please check and sign again.

@missirol
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d919dc/30085/summary.html
COMMIT: c3d66ef
CMSSW: CMSSW_13_0_X_2023-01-19-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40528/30085/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555479
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555451
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@missirol
Copy link
Contributor Author

@cms-sw/xpog-l2

Do you have other comments on this PR?

@vlimant
Copy link
Contributor

vlimant commented Jan 24, 2023

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@vlimant
Copy link
Contributor

vlimant commented Jan 24, 2023

a backport might be required, although data taking will move on to 13.0 AFAIK

@missirol
Copy link
Contributor Author

a backport might be required, although data taking will move on to 13.0 AFAIK

The 12_6_X backport is in place, and tested, at #40588.

@perrotta
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants