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

Manage PluginFactory plugins with unique_ptr in SimMuon #25900

Merged
merged 3 commits into from Feb 13, 2019

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Feb 8, 2019

Also some further cleanup. This PR is preparatory work to change the PluginFactory to return a std::unique_ptr.

Tested in CMSSW_10_5_X_2019-02-05-1100 , no changes expected.

This works for PluginFactory returning either raw pointer or unique_ptr.
@makortel makortel changed the title Manage PluginFactory plugins with unique_ptr in RecoLocalMuon Manage PluginFactory plugins with unique_ptr in SimMuon Feb 8, 2019
@cmsbuild cmsbuild added this to the CMSSW_10_5_X milestone Feb 8, 2019
@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25900/8371

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

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

It involves the following packages:

SimMuon/DTDigitizer
SimMuon/GEMDigitizer
SimMuon/RPCDigitizer

@cmsbuild, @civanch, @mdhildreth, @kpedro88 can you please review it and eventually sign? Thanks.
@dildick, @jhgoh this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Feb 8, 2019

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/33064/console Started: 2019/02/09 00:25

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25900/33064/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3097440
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097242
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@@ -27,7 +27,8 @@ namespace CLHEP {
}

GEMDigiProducer::GEMDigiProducer(const edm::ParameterSet& ps)
: digiModelString_(ps.getParameter<std::string>("digiModelString"))
: gemDigiModel_{GEMDigiModelFactory::get()->create("GEM" + ps.getParameter<std::string>("digiModelString") + "Model",
ps)}
{
Copy link
Contributor

Choose a reason for hiding this comment

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

@makortel , do you not think that complex initialisation within constructor may be difficult for code reader? I understand that this code now is more effective than previous variant, however, may be enough simple removal of digiModelString_ class member?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think replacing digiModelString_ with ps.getParameter<std::string>("digiModelString") would make the code much harder to read. Although my main motivation for this construct was to avoid additional std::unique_ptr<GEMDigiModel>{GEMDigiModelFactory::get()...} that would be needed for the assignment in the constructor body.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25900/8393

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

Pull request #25900 was updated. @cmsbuild, @civanch, @mdhildreth, @kpedro88 can you please check and sign again.

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 12, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/33092/console Started: 2019/02/12 16:53

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25900/33092/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3097440
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097242
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@kpedro88
Copy link
Contributor

+upgrade

@civanch
Copy link
Contributor

civanch commented Feb 13, 2019

+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@kpedro88
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 9e776f6 into cms-sw:master Feb 13, 2019
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

4 participants