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

Modernize most legacy EDModules in TopQuarkAnalysis package #36692

Merged
merged 12 commits into from
Jan 24, 2022

Conversation

makortel
Copy link
Contributor

PR description:

Part of #36404. Modernization includes

  • Move contents of plugin headers to source files
  • Use thread-efficient EDModule base classes
  • Use of std::unique_ptr instead of raw pointers
  • Use of Event::get() instead of Event::getByToken() (not everywhere though)

Notable EDModules left to legacy (of which TtFullLepKinSolutionProducer. is being run in IB tests according to #36404 (comment))

  • TtSemiEvtSolutionMaker
    • Uses TtSemiLRJetCombCalc that uses LRHelpFunctions that calls gStyle->Set.... Migrating this would need domain knowledge.
  • TtHadEvtSolutionMaker
    • Uses TtHadLRJetCombCalc that uses LRHelpFunctions (see above)
  • TtDilepEvtSolutionMaker
  • TtFullLepKinSolutionProducer.
    • Calls TF2::Ecval() (see above)

These are left to be followed up later (I'll probably open a new issue with the information above).

PR validation:

Unit tests pass.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36692/27758

  • This PR adds an extra 176KB to repository

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

Add "SERIAL" to the TH1::Fit() calls to make the calls thread friendly.
… TopKinFitter

List of classes:
- TtFullHadKinFitProducer
- TtFullLepKinSolutionProducer
- TtSemiLepKinFitProducer
List of classes
- TtFullHadKinFitProducer
- TtSemiLepKinFitProducer
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36692/27759

  • This PR adds an extra 176KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

  • AnalysisDataFormats/TopObjects (analysis)
  • TopQuarkAnalysis/TopEventProducers (analysis)
  • TopQuarkAnalysis/TopHitFit (analysis)
  • TopQuarkAnalysis/TopJetCombination (analysis)
  • TopQuarkAnalysis/TopKinFitter (analysis)
  • TopQuarkAnalysis/TopObjectResolutions (analysis)
  • TopQuarkAnalysis/TopSkimming (analysis)
  • TopQuarkAnalysis/TopTools (analysis)

@cmsbuild, @santocch can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cee146/21659/summary.html
COMMIT: 0251b28
CMSSW: CMSSW_12_3_X_2022-01-11-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36692/21659/install.sh to create a dev area with all the needed externals and cmssw changes.

Clang Build

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36692/27775

  • This PR adds an extra 184KB to repository

@cmsbuild
Copy link
Contributor

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

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cee146/21699/summary.html
COMMIT: 002c1f2
CMSSW: CMSSW_12_3_X_2022-01-12-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36692/21699/install.sh to create a dev area with all the needed externals and cmssw changes.

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

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461659
  • DQMHistoTests: Total failures: 10
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3461626
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 42 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

+1

  • (Bypassing analysis signature)

@perrotta
Copy link
Contributor

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.

4 participants