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

Slight refactoring of PFEGammaAlgo #27045

Merged
merged 4 commits into from
Jun 11, 2019
Merged

Slight refactoring of PFEGammaAlgo #27045

merged 4 commits into from
Jun 11, 2019

Conversation

guitargeek
Copy link
Contributor

PR description:

While other PRs are working on PFAlgo, I still have some suggestions for PFEGammaAlgo. In this PR I propose to:

  1. Have a const reference to the employed GBRForests as a member so one does not have to pass them as a function argument with the rather obscure name hoc (for "HeavyObjectCache"). Having const members is ok after all, I only have it with the mutable members.
  2. Have a new output type for the PFAlgo, so one only has to use the algo by the operator() instead of retrieving all the results that are saved as mutable members of the algo via getter functions
  3. Merge PFEGammaProducer.h with .cc

PFEGammaAlgo has now only half as many mutable members as before, so we are on a good track towards a nice thread safe algo there I think!

PR validation:

CMSSW compiles and local matrix tests pass.

if this PR is a backport please specify the original PR:

No backport intended.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27045/10126

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @guitargeek (Jonas Rembser) for master.

It involves the following packages:

RecoParticleFlow/PFProducer

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@mmarionncern, @hatakeyamak, @lgray, @seemasharmafnal, @cbernet, @bachtis 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

@perrotta
Copy link
Contributor

perrotta commented Jun 4, 2019

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/745/console Started: 2019/06/04 15:28

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5c9751/745/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: 3210222
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3209887
  • DQMHistoTests: Total skipped: 334
  • 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

_splayedblock.clear();
_refinableObjects.clear();
refinableObjects.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

This clearing is not needed any more, being refinableObjects now a local variable which was just defined here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True! Thanks for reviewing


private:

void setPFEGParameters(PFEGammaAlgo::PFEGConfigInfo&);
Copy link
Contributor

Choose a reason for hiding this comment

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

You removed the impementation of this function, no need to define it

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@guitargeek
Copy link
Contributor Author

Hi, I followed your two suggestions and made a little additional change that makes sense to me: I took the primaryVertex out of the cfg_ member, because I think the point of these "configuration structs" should be that they contain immutable configuration data only.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27045/10299

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

Pull request #27045 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 10, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/856/console Started: 2019/06/10 15:14

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3215458
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3215122
  • DQMHistoTests: Total skipped: 334
  • 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

@perrotta
Copy link
Contributor

+1

  • Code refactoring and simplification according to what described
  • Jenkins tests pass and show no differences

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

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit dce6495 into cms-sw:master Jun 11, 2019
@guitargeek guitargeek deleted the PFEGammaAlgo_1 branch June 11, 2019 22:21
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

4 participants