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

Remove stray includes from PFBlockAlgo.h and minor cleanups #26543

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Remove stray includes from PFBlockAlgo.h and minor cleanups #26543

merged 1 commit into from
Apr 29, 2019

Conversation

guitargeek
Copy link
Contributor

PR description:

Sorry, quick follow up on #26519: there were still include files hiding at the bottom of PFBlockAlgo.h which I forgot to remove. Also some minor cleaning of PFBlockAlgo and PFEgammaAlgo.

PR validation:

CMSSW compiles and matrix tests pass.

@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-26543/9438

  • This PR adds an extra 48KB 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

@slava77
Copy link
Contributor

slava77 commented Apr 26, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 26, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/34358/console Started: 2019/04/26 13:49

@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-26543/34358/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 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

@@ -76,10 +69,6 @@ class PFBlockAlgo {
void packLinks(reco::PFBlock& block,
const std::unordered_map<std::pair<unsigned int,unsigned int>,double>& links) const;

/// Avoid to check links when not useful
inline bool linkPrefilter(const reco::PFBlockElement* last,
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is removed because it is never used. In fact, it is the BlockElementLinkerBase::linkPrefilter(...) that is called instead.

However, if I am not missing anything in the logic and the

std::vector<std::unique_ptr<BlockElementLinkerBase>> linkTests_;

does not specialize into any of the clasess derived from BlockElementLinkerBase, that BlockElementLinkerBase::linkPrefilter(...) always identically returns true, see https://cmssdt.cern.ch/lxr/source/RecoParticleFlow/PFProducer/interface/BlockElementLinkerBase.h#0018

Could you please verify? If so, some further cleaning is possible (or some fix, if the original intention was different).

@bendavid @hatakeyamak

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Andrea, it's not so simple I think on first glance. Some of the derived linkers implement this method in a non-trivial way, and thanks to the virtual table these are actually used.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Andrea, it's not so simple I think on first glance. Some of the derived linkers implement this method in a non-trivial way, and thanks to the virtual table these are actually used.

Thank you @guitargeek
Indeed I was expecting something similar, but it was not straightforward to me to find how those derived linkers enter in the game

@perrotta
Copy link
Contributor

+1

  • Cleanup implemented as planned
  • 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 5f8c39b into cms-sw:master Apr 29, 2019
@guitargeek guitargeek deleted the PFProducer_cleanup_3 branch May 18, 2019 22:31
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