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 unused headers for phys & misc packages #35252

Merged
merged 2 commits into from
Sep 17, 2021

Conversation

yuanchao
Copy link
Contributor

@yuanchao yuanchao commented Sep 13, 2021

PR description:

This is the last batch of unused header removal.

Following the issue #31505, the following headers are unused in several package:

  • PhysicsTools/FWLite/interface/WSelectorFast.h
  • PhysicsTools/MVAComputer/interface/MVAModuleHelper.h
  • PhysicsTools/PatExamples/interface/WPlusJetsEventSelector.h
  • PhysicsTools/PatUtils/interface/JetSelector.h
  • PhysicsTools/PatUtils/interface/JetSelector.icc
  • PhysicsTools/PatUtils/interface/PatSelectorByFlags.h
  • PhysicsTools/PatUtils/interface/RefHelper.h
  • PhysicsTools/SelectorUtils/interface/Variables.h
  • PhysicsTools/UtilAlgos/interface/DummyMatchSelector.h
  • PhysicsTools/UtilAlgos/interface/EventSelector.h
  • PhysicsTools/UtilAlgos/interface/MCMatchSelector.h
  • PhysicsTools/UtilAlgos/interface/NtpProducer.h
  • PhysicsTools/UtilAlgos/interface/SelectedOutputCollectionTrait.h
  • PhysicsTools/UtilAlgos/interface/SelectionAdderTrait.h
  • PhysicsTools/UtilAlgos/interface/StoreContainerTrait.h
  • PhysicsTools/UtilAlgos/interface/TwoObjectCalculator.h
  • PhysicsTools/Utilities/interface/GammaPropagator.h
  • PhysicsTools/Utilities/interface/GammaZInterference.h
  • PhysicsTools/Utilities/interface/Number.h
  • PhysicsTools/Utilities/interface/ZLineShape.h
  • TopQuarkAnalysis/TopTools/interface/TopologyWorker.h
  • TrackingTools/AnalyticalJacobians/interface/CurvilinearJacobian.h
  • TrackingTools/GsfTools/interface/GaussianSumUtilities.h
  • TrackingTools/GsfTools/interface/GaussianSumUtilities.icc
  • TrackingTools/PatternTools/interface/MediumProperties.h
  • TrackingTools/Records/interface/Records.h

PR validation:

Code compiles. Run local limited runTheMatrix.py tests.

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

Not a backport and no backport forseen.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35252/25229

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @yuanchao (Yuan CHAO) for master.

It involves the following packages:

  • EventFilter/DTRawToDigi (reconstruction)
  • EventFilter/ESRawToDigi (reconstruction)
  • EventFilter/EcalRawToDigi (reconstruction)
  • EventFilter/RPCRawToDigi (reconstruction)
  • EventFilter/Utilities (daq, reconstruction)
  • HeavyFlavorAnalysis/SpecificDecay (analysis)
  • IOPool/Common (core)
  • JetMETCorrections/InterpolationTables (analysis)
  • JetMETCorrections/Type1MET (reconstruction)
  • PhysicsTools/FWLite (analysis)
  • PhysicsTools/MVAComputer (analysis)
  • PhysicsTools/PatExamples (analysis)
  • PhysicsTools/PatUtils (reconstruction)
  • PhysicsTools/SelectorUtils (reconstruction)
  • PhysicsTools/UtilAlgos (analysis)
  • PhysicsTools/Utilities (analysis)
  • TopQuarkAnalysis/TopTools (analysis)
  • TrackingTools/AnalyticalJacobians (reconstruction)
  • TrackingTools/GsfTools (reconstruction)
  • TrackingTools/PatternTools (reconstruction)
  • TrackingTools/Records (reconstruction)

@smuzaffar, @Dr15Jones, @makortel, @emeschi, @cmsbuild, @slava77, @jpata, @santocch, @smorovic can you please review it and eventually sign? Thanks.
@rappoccio, @gouskos, @felicepantaleo, @hatakeyamak, @emilbols, @argiro, @Martin-Grunewald, @wddgit, @thomreis, @ahinzmann, @demuller, @mmusich, @seemasharmafnal, @mmarionncern, @calderona, @makortel, @JanFSchulte, @jhgoh, @jdolen, @sscruz, @cericeci, @simonepigazzini, @trocino, @abbiendi, @GiacomoSguazzoni, @rovere, @VinInn, @jdamgov, @bellan, @nhanvtran, @gkasieczka, @schoef, @ebrondol, @mtosi, @dgulhan, @clelange, @AlexDeMoor, @HuguesBrun, @rchatter, @battibass, @Fedespring, @JyothsnaKomaragiri, @lecriste, @gpetruc, @mariadalfonso, @andrzejnovak 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

@makortel
Copy link
Contributor

@cmsbuild, please test

@jpata
Copy link
Contributor

jpata commented Sep 13, 2021

There is some overlap with the PR #35105

EventFilter/DTRawToDigi/interface/DTROS25Data.h
EventFilter/ESRawToDigi/interface/ESCrcKchipFast.h
JetMETCorrections/InterpolationTables/interface/BoxNDScanner.h
JetMETCorrections/InterpolationTables/interface/MultivariateFunctorScanner.h
JetMETCorrections/InterpolationTables/interface/rescanArray.h
JetMETCorrections/Type1MET/interface/CorrectedMETProducerT.h
(list may be incomplete, please verify yourself)

Can you please remove from this PR any file already touched by 35105?

@yuanchao
Copy link
Contributor Author

There is some overlap with the PR #35105

EventFilter/DTRawToDigi/interface/DTROS25Data.h
EventFilter/ESRawToDigi/interface/ESCrcKchipFast.h
JetMETCorrections/InterpolationTables/interface/BoxNDScanner.h
JetMETCorrections/InterpolationTables/interface/MultivariateFunctorScanner.h
JetMETCorrections/InterpolationTables/interface/rescanArray.h
JetMETCorrections/Type1MET/interface/CorrectedMETProducerT.h
(list may be incomplete, please verify yourself)

Can you please remove from this PR any file already touched by 35105?

Ouch. I thought I've removed them. Fixing

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35252/25240

  • This PR adds an extra 24KB to repository

  • Found files with invalid states:

    • EventFilter/EcalRawToDigi/interface/MyWatcher.h:
    • EventFilter/Utilities/interface/ModuleWeb.h:
    • EventFilter/Utilities/interface/config_json.h:
    • IOPool/Common/interface/CustomStreamer.h:
    • HeavyFlavorAnalysis/SpecificDecay/interface/BPHParticleChargeSelect.h:
    • EventFilter/ESRawToDigi/interface/ESCrcKchipFast.h:
    • EventFilter/EcalRawToDigi/interface/ECALUnpackerException.h:
    • EventFilter/DTRawToDigi/interface/DTROS25Data.h:
    • HeavyFlavorAnalysis/SpecificDecay/interface/BPHMuonChargeSelect.h:
    • EventFilter/RPCRawToDigi/interface/RPCRawSynchro.h:
    • JetMETCorrections/InterpolationTables/interface/BoxNDScanner.h:
    • JetMETCorrections/InterpolationTables/interface/rescanArray.h:
    • JetMETCorrections/InterpolationTables/interface/MultivariateFunctorScanner.h:
    • JetMETCorrections/Type1MET/interface/CorrectedMETProducerT.h:

@cmsbuild
Copy link
Contributor

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

@yuanchao yuanchao changed the title Remove unused headers for phys/event filter & misc packages Remove unused headers for phys & misc packages Sep 13, 2021
@yuanchao
Copy link
Contributor Author

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a01080/18570/summary.html
COMMIT: bec9a31
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/35252/18570/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3001001
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000979
  • 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

@jpata
Copy link
Contributor

jpata commented Sep 14, 2021

Can you please update the list of removed files in the PR description following #35252 (comment)? Thanks!

@yuanchao
Copy link
Contributor Author

yuanchao commented Sep 14, 2021

Can you please update the list of removed files in the PR description following #35252 (comment)? Thanks!

It's now updated.

@jpata
Copy link
Contributor

jpata commented Sep 16, 2021

I checked the git history of all headers, and did a quick google search for each for possible non-cmssw use / references in documentation. To me, all look like they can be removed, as they are unused in cmssw, in some cases duplicates, and basically untouched since the git migration 8 years ago.

For example, https://github.com/cms-sw/cmssw/blob/6d2f66057131baacc2fcbdd203588c41c885b42c/TrackingTools/AnalyticalJacobians/interface/CurvilinearJacobian.h looks like an outdated version of https://github.com/cms-sw/cmssw/blob/6d2f66057131baacc2fcbdd203588c41c885b42c/TrackingTools/AnalyticalJacobians/interface/AnalyticalCurvilinearJacobian.h.

https://github.com/cms-sw/cmssw/blob/6d2f66057131baacc2fcbdd203588c41c885b42c/PhysicsTools/UtilAlgos/interface/MCMatchSelector.h is an outdated version of https://github.com/cms-sw/cmssw/blob/6d2f66057131baacc2fcbdd203588c41c885b42c/CommonTools/UtilAlgos/interface/MCMatchSelector.h.

@jpata
Copy link
Contributor

jpata commented Sep 16, 2021

+reconstruction

@qliphy
Copy link
Contributor

qliphy commented Sep 17, 2021

+1

@qliphy
Copy link
Contributor

qliphy commented Sep 17, 2021

merge

@cmsbuild cmsbuild merged commit 443c56f into cms-sw:master Sep 17, 2021
@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