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

Clean up and migrating edm::RefToBase to edm::Ptr (list 2 for RNTuple) #43080

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

jeongeun
Copy link
Contributor

PR description:

This pull request is the second update to address the opened issue #42737 :

ROOT is eventually deprecating the current TTree data storage in favor of their new RNTuple which is not planned to support dynamic polymorphism. One such use case in our data formats is edm::RefToBase<T> that internally uses dynamic-polymorphism based type erasure. The straightforward migration path is towards edm::Ptr<T>.

Previous PR #43055 covered the first case on the list.

And this PR covers the second case :
It contains the set of edm::RefToBase<T> that the referenced-to class appear to be unused.
The unused code, the dictionaries and/or type aliases are removed.

As described in #42737,

  • Clean up the unused reco::WMuNuCandidatePtr and reco::WMuNuCandidate.

  • Replace edm::RefToBase<CaloRecHit> with edm::Ptr<CaloRecHit> (if no need to be kept, then I will remove).
    edm::RefToBase<CaloRecHit>CaloRecHitRef used as a member data of CaloRecHitCandidate. And CaloRecHitCandidate seems to be only produced by CaloRecHitCandidateProducer<T>. Unclear if anything consumes. The template instantiations seem to be unused.

PR validation:

Tested in CMSSW_13_3_0_pre3, the basic test passed in the CMSSW PR instructions

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43080/37313

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @jeongeun (JeongEun Lee) for master.

It involves the following packages:

  • AnalysisDataFormats/EWK (analysis)
  • CommonTools/RecoAlgos (reconstruction)
  • DataFormats/CaloRecHit (reconstruction)
  • DataFormats/RecoCandidate (reconstruction)

@tvami, @jfernan2, @mandrenguyen, @cmsbuild can you please review it and eventually sign? Thanks.
@missirol, @jdolen, @thomreis, @hatakeyamak, @ReyerBand, @abbiendi, @jhgoh, @ahinzmann, @gouskos, @rovere, @wang0jin, @gkasieczka, @rappoccio this is something you requested to watch as well.
@sextonkennedy, @antoniovilela, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8c65a5/35346/summary.html
COMMIT: b1af56f
CMSSW: CMSSW_13_3_X_2023-10-22-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/43080/35346/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 6 lines from the logs
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3357400
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3357375
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Oct 23, 2023

+analysis

  • PR in line with the desc
  • tests pass, diffs in MsgLogger only

@jfernan2
Copy link
Contributor

+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 now be reviewed by the release team before it's merged. @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2)

Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No purpose. Sorry it happened to be included because I just used git add * command. I remove it.
(This file was created after running the scram build updateclassversion).

@cmsbuild
Copy link
Contributor

Pull request #43080 was updated. @mandrenguyen, @tvami, @cmsbuild, @jfernan2 can you please check and sign again.

@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8c65a5/35457/summary.html
COMMIT: b001ace
CMSSW: CMSSW_13_3_X_2023-10-26-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/43080/35457/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

  • 4.764.76_ZMuSkim2012D/step2_ZMuSkim2012D.log

Comparison Summary

Summary:

  • You potentially removed 7 lines from the logs
  • Reco comparison results: 24 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3357400
  • DQMHistoTests: Total failures: 1067
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3356311
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

+1
Failure seems related to xrootd input in 4.76 RelVal

@makortel
Copy link
Contributor

Thanks @jeongeun!

@makortel makortel mentioned this pull request Oct 27, 2023
34 tasks
@tvami
Copy link
Contributor

tvami commented Oct 30, 2023

+analysis

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2)

@tvami
Copy link
Contributor

tvami commented Oct 30, 2023

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8c65a5/35512/summary.html
COMMIT: b001ace
CMSSW: CMSSW_13_3_X_2023-10-30-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43080/35512/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 8 lines from the logs
  • Reco comparison results: 10 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3362691
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3362657
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit d40536b into cms-sw:master Nov 1, 2023
11 checks passed
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