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

Merge .h and .cc files of plugins in several PhysicsTools packages #34615

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Merge .h and .cc files of plugins in several PhysicsTools packages #34615

merged 1 commit into from
Sep 1, 2021

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jul 25, 2021

PR description:

Part of the series of PRs that merges .h files with the .cc files of the plugins in the PhysicsTools subsystem, continuing the work from #34594.

It makes maintaining the plugins much easier and also excludes the possibility to wrongly include plugin header files.

There were the steps taken to merge the files:

  • copy-paste
  • sort includes
  • removed duplicate and unnecessary includes

PR validation:

CMSSW compiles.

if this PR is a backport please specify the original PR and why you need to backport that PR:

No backport intended.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34615/24192

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • PhysicsTools/IsolationAlgos (reconstruction)
  • PhysicsTools/PatAlgos (reconstruction)
  • PhysicsTools/TagAndProbe (analysis)

@perrotta, @jpata, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks.
@mmarionncern, @gouskos, @JyothsnaKomaragiri, @ahinzmann, @schoef, @rappoccio, @swozniewski, @jdamgov, @jdolen, @nhanvtran, @gkasieczka, @clelange, @emilbols, @hatakeyamak, @mbluj, @gpetruc, @andrzejnovak, @mariadalfonso, @seemasharmafnal this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy, @perrotta you are the release manager for this.

cms-bot commands are listed here

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/17178/summary.html
COMMIT: 0673c6e
CMSSW: CMSSW_12_0_X_2021-07-25-0000/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/34615/17178/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/17178/llvm-analysis/legacy-mod-sa.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 2998564
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2998529
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 38 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

Copy link
Contributor

@jpata jpata left a comment

Choose a reason for hiding this comment

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

Thanks for this refactoring! Please see inline for a few questions.

// get tau-jet collection from the event
edm::Handle<edm::View<reco::BaseTau> > tauJets;
evt.getByToken(srcToken_, tauJets);
auto tauJets = evt.getHandle(srcToken_);
Copy link
Contributor

Choose a reason for hiding this comment

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

since the Handle is not used later, it seems like this could work too?

Suggested change
auto tauJets = evt.getHandle(srcToken_);
const auto& tauJets = evt.get(srcToken_);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay right, but this commit is outdated now because the esConsumes migration of the TauJetCorrFactorsProducer was done in #34997.

es.get<JetCorrectionsRecord>().get(payload, jecParameters);

correctorMapping[payload] = std::make_shared<FactorizedJetCorrector>(params(*jecParameters, levels_));
const int payloadTokenValue = payloadToken->index().value();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a nice refactoring to go from a string to an int in the map, but could you comment if it's guaranteed to give the same result? It's not immediate (to me at least) what index().value() corresponds to 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.

Okay right, but this commit is outdated now because the esConsumes migration of the TauJetCorrFactorsProducer was done in #34997.

@smuzaffar smuzaffar modified the milestones: CMSSW_12_0_X, CMSSW_12_1_X Jul 30, 2021
@jpata
Copy link
Contributor

jpata commented Aug 9, 2021

kind ping @guitargeek, just in case you are around

@jpata
Copy link
Contributor

jpata commented Aug 23, 2021

kind ping @guitargeek

@jpata
Copy link
Contributor

jpata commented Aug 30, 2021

kind ping @guitargeek
there's also a conflict.

@guitargeek guitargeek changed the title Merge .h and .cc files of plugins in several PhysicsTools packages and esConsumes migration of TauJetCorrFactorsProducer Merge .h and .cc files of plugins in several PhysicsTools packages Aug 31, 2021
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34615/24979

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34615 was updated. @jpata, @cmsbuild, @santocch, @slava77 can you please check and sign again.

@jpata
Copy link
Contributor

jpata commented Sep 1, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/18188/summary.html
COMMIT: d363c3b
CMSSW: CMSSW_12_1_X_2021-08-31-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34615/18188/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/18188/llvm-analysis/legacy-mod-sa.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 7 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000404
  • DQMHistoTests: Total failures: 11
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3000370
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 38 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@jpata
Copy link
Contributor

jpata commented Sep 1, 2021

+reconstruction

@perrotta
Copy link
Contributor

perrotta commented Sep 1, 2021

+1

@perrotta
Copy link
Contributor

perrotta commented Sep 1, 2021

merge

@santocch
Copy link

+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 be automatically merged.

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.

6 participants