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

improve implementation of HLTJetTag<T> plugin template #41351

Merged
merged 1 commit into from
May 18, 2023

Conversation

missirol
Copy link
Contributor

@missirol missirol commented Apr 16, 2023

PR description:

This PR aims to improve the plugin template HLTJetTag<T> as follows.

  1. Add option to match jets by delta-R (the plugin uses two jet collections: the first one is a simple jet collection, the second one is the "key" of a JetTagCollection whose values as the jet b-tagging scores).
  2. If delta-R matching is not used (not using delta-R matching remains the default behaviour), the (b-)tag value of the jet is accessed via the method edm::AssociationVector::operator[]. This requires that the input jet collection is the same as the "key" collection of the JetTagCollection. If this is not the case, the plugin will throw an exception at runtime.

The limits of the current implementation of HLTJetTag<T> were discussed in #41045.

PR validation:

Private tests done as part of #41045.

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:

CMSSW_13_0_X
CMSSW_13_1_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41351/35190

  • 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:

  • HLTrigger/btau (hlt)

@cmsbuild, @missirol, @Martin-Grunewald can you please review it and eventually sign? Thanks.
@AlexDeMoor, @emilbols, @silviodonato, @AnnikaStein, @Martin-Grunewald, @JyothsnaKomaragiri, @andrzejnovak, @demuller 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 do not start the tests yet, unless you want to see them fail.

  • The 2023 HLT menu first has to be fixed.
  • The frozen 2022 HLT menu has to be removed from CMSSW, otherwise any wf with it would fail at runtime with this PR.

@missirol
Copy link
Contributor Author

please test

Please do not start the tests yet, unless you want to see them fail.

  • The 2023 HLT menu first has to be fixed.

  • The frozen 2022 HLT menu has to be removed from CMSSW, otherwise any wf with it would fail at runtime with this PR.

The two items above are done (it only took me one month..). Let's see if this PR works now.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8a0bda/32678/summary.html
COMMIT: 18a1de5
CMSSW: CMSSW_13_2_X_2023-05-16-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41351/32678/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:
140.031 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:

  • You potentially added 15 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3222854
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3222832
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41351/35583

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #41351 was updated. @cmsbuild, @missirol, @Martin-Grunewald 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-8a0bda/32689/summary.html
COMMIT: c7dfe93
CMSSW: CMSSW_13_2_X_2023-05-17-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41351/32689/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 17 lines from the logs
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3222854
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3222826
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@missirol
Copy link
Contributor Author

+hlt

@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)

Copy link
Contributor

Choose a reason for hiding this comment

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

When we combine the header and source file for plugins we normally keep the source and remove the header. I couldn't find an official requirement for it in http://cms-sw.github.io/cms_coding_rules.html, though.
Therefore, I am not going to enforce it here. However, it looks to me quite reasonable that plugins shouldn't stay on header files, because they shouldn't get included by other files.

Therefore @missirol I wonder whether would you agree to move the current HLTJetTag.h file into a HLTJetTag.cc one, or if you see any reason not to do so, instead: in the second case, this PR can be merged as such.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I agree with everything. What is non-standard here is that this is a plugin template, so in a sense I followed rule 4.3

Header files must not contain any implementation except for class templates and code to be inlined.

, and that's why it stayed as a header file. The header file is called by HLTrigger/btau/plugins/modules.cc, which is where the actual plugins (template instantiations) are created.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, it makes sense, thank you Marino.
Let things as such, then

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 9d147a6 into cms-sw:master May 18, 2023
@missirol missirol deleted the devel_fix41045_step2 branch July 4, 2023 09:44
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