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 some CommonTools packages #35216

Merged
merged 3 commits into from Sep 16, 2021
Merged

Merge .h and .cc files of plugins in some CommonTools packages #35216

merged 3 commits into from Sep 16, 2021

Conversation

guitargeek
Copy link
Contributor

PR description:

Part of the series of PRs that merges .h files with the .cc files of the plugins in some CMSSW subsystems.

This continues the work done in #34660.

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

The changes made in this PR are only copy-paste and sorting includes to make the review easy.

Note that the ShallowCloneProducer.h file was moved from CommonTools/CandAlgos/interface to CommonTools/RecoAlgos/plugins because it is the only place where it is used.

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

cmsbuild commented Sep 9, 2021

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35216/25162

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@jpata
Copy link
Contributor

jpata commented Sep 10, 2021

@cmsbuild code-checks

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35216/25199

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • CommonTools/CandAlgos (reconstruction)
  • CommonTools/ParticleFlow (reconstruction)
  • CommonTools/PileupAlgos (reconstruction)
  • CommonTools/RecoAlgos (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @abbiendi, @jhgoh, @jdolen, @gkasieczka, @hatakeyamak, @clelange, @cbernet this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@jpata
Copy link
Contributor

jpata commented Sep 13, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-fc44f1/18548/summary.html
COMMIT: ccfea4b
CMSSW: CMSSW_12_1_X_2021-09-13-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35216/18548/install.sh to create a dev area with all the needed externals and cmssw changes.

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

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3001001
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000973
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35216/25255

ERROR: Build errors found during clang-tidy run.

    tokenVertexAssociation_ = consumes<CandToVertex>(iConfig.getParameter<edm::InputTag>("vertexAssociation"));
                                       ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:113:5: error: use of undeclared identifier 'tokenVertexAssociationQuality_' [clang-diagnostic-error]
    tokenVertexAssociationQuality_ =
    ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:157:8: error: use of undeclared identifier 'fUseVertexAssociation' [clang-diagnostic-error]
  if ((fUseVertexAssociation) && (!fUseExistingWeights)) {
       ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:158:31: error: use of undeclared identifier 'tokenVertexAssociation_' [clang-diagnostic-error]
    associatedPV = iEvent.get(tokenVertexAssociation_);
                              ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:159:37: error: use of undeclared identifier 'tokenVertexAssociationQuality_' [clang-diagnostic-error]
    associationQuality = iEvent.get(tokenVertexAssociationQuality_);
                                    ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:194:11: error: use of undeclared identifier 'fUseVertexAssociation' [clang-diagnostic-error]
      if (fUseVertexAssociation) {
          ^
CommonTools/PileupAlgos/plugins/PuppiProducer.cc:197:47: error: use of undeclared identifier 'vertexAssociationQuality_' [clang-diagnostic-error]
        if (PVOrig.isNonnull() && (quality >= vertexAssociationQuality_)) {
                                              ^
Suppressed 1746 warnings (1742 in non-user code, 3 NOLINT, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35216/25258

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

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

@slava77
Copy link
Contributor

slava77 commented Sep 15, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-fc44f1/18624/summary.html
COMMIT: f076690
CMSSW: CMSSW_12_1_X_2021-09-14-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35216/18624/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-fc44f1/18624/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-fc44f1/18624/git-merge-result

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

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000833
  • DQMHistoTests: Total failures: 11
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3000799
  • 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.

I checked that all the code changes look reasonable, nothing unexpected.

The reco differences in 1325.81, 136.731 seem to be related to the DNN non-reproducibility: #32628
Dumping the pairDiscri names:

73 pfParticleNetJetTags:probWcq
100 pfParticleNetDiscriminatorsJetTags:HccvsQCD
103 pfParticleNetDiscriminatorsJetTags:ZbbvsQCD

PFMet still looks like a legacy class, pinged PF contacts. It is not a blocker for this PR as such, can be a follow-up.

#include <memory>
#include <string>

class PFMET : public edm::EDProducer {
Copy link
Contributor

@jpata jpata Sep 16, 2021

Choose a reason for hiding this comment

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

Is this class used in production? If so, I believe it should be ported to either edm::one or preferrably edm::stream.
@laurenhay @marksan87

@jpata
Copy link
Contributor

jpata commented Sep 16, 2021

+reconstruction

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

@qliphy
Copy link
Contributor

qliphy commented Sep 16, 2021

+1

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