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

drop provenance checks when not needed in DeepFlavourTagInfoProducer #26634

Conversation

slava77
Copy link
Contributor

@slava77 slava77 commented May 4, 2019

do provenance check only once per collection retrieval and only when the negative tagging is running.

in a recent performance inspection the provenance check was found to dominate the CPU use in the DeepFlavourTagInfoProducer::produce calls
https://slava77sk.web.cern.ch/slava77sk/reco/cgi-bin/igprof-navigator/CMSSW_10_6_0_pre2-sign1069.136.8311.step2.1000.pp/487

This check is used only in the analysis mode with pfNegativeDeepFlavourTagInfos.
This PR moves the check out of the loop to be done just once per event and only with the flip flag set for running negative tagging.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

The code-checks are being triggered in jenkins.

@slava77
Copy link
Contributor Author

slava77 commented May 4, 2019

@emilbols @ferencek
this was added in #23467.

@slava77
Copy link
Contributor Author

slava77 commented May 4, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26634/9594

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/34503/console Started: 2019/05/04 17:22

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

A new Pull Request was created by @slava77 (Slava Krutelyov) for master.

It involves the following packages:

RecoBTag/FeatureTools

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@smoortga, @acaudron, @HeinerTholen, @JyothsnaKomaragiri, @mverzett, @hqucms, @ferencek, @pvmulder this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-26634/34503/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3211964
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3211759
  • DQMHistoTests: Total skipped: 204
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@@ -152,6 +152,15 @@ void DeepFlavourTagInfoProducer::produce(edm::Event& iEvent, const edm::EventSet

edm::Handle<ShallowTagInfoCollection> shallow_tag_infos;
iEvent.getByToken(shallow_tag_info_token_, shallow_tag_infos);
double negative_cut = 0;//used only with flip_
if (flip_){//FIXME: Check if can do even less often than once per event
Copy link
Contributor

Choose a reason for hiding this comment

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

The framework guarantees that provenance is stable over an entire Run

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice to know.
My guess was bordering on some IOV possible boundaries.
It sounds like the beginRun can be the more safe and complete version of this code.
Thanks.

@slava77
Copy link
Contributor Author

slava77 commented May 5, 2019

+1

for #26634 3d71f1c

  • code changes are in line with the PR description
  • jenkins tests pass and comparisons with the baseline show no differences

@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2019

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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

fabiocos commented May 6, 2019

+1

@cmsbuild cmsbuild merged commit 7b81013 into cms-sw:master May 6, 2019
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.

None yet

5 participants