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

Apply Naming Rules to BeamSpotOnlineObjects methods #36348

Merged

Conversation

francescobrivio
Copy link
Contributor

@francescobrivio francescobrivio commented Dec 3, 2021

PR description:

Following the discussion in #35338 (comment) I made this rather technical PR that to update the methods of BeamSpotOnlineObjects to follow CMSSW Naming Rules (specifically 2.8/2.9/2.10/2.11) so that:

  • setters methods start with set*
  • getters methods don't contain anymore the word get

I used git cms-checkdeps -a to modify all the packages depending on the BeamSpotOnlineObjects class.

A second PR will follow this in order to update also the methods of BeamSpotObjects.

I also profited of this PR to migrate CondTools/BeamSpot/plugins/BeamSpotOnlineRecordsWriter.cc to use an object created on the stack as suggested in this slide and part of cms-AlCaDB/AlCaTools#28.

PR validation:

Code compiles.

Backport:

Not a backport, no backport needed.

FYI: @dzuolo @lguzzi @gennai

@francescobrivio
Copy link
Contributor Author

code-checks

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 3, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36348/27108

  • This PR adds an extra 52KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 3, 2021

A new Pull Request was created by @francescobrivio for master.

It involves the following packages:

  • CondCore/BeamSpotPlugins (db)
  • CondFormats/BeamSpotObjects (db, alca)
  • CondTools/BeamSpot (db, alca)
  • DQM/BeamMonitor (dqm)
  • RecoVertex/BeamSpotProducer (reconstruction, alca)

@malbouis, @yuanchao, @pmandrik, @emanueleusai, @ahmad3213, @tvami, @cmsbuild, @ggovi, @jfernan2, @slava77, @jpata, @francescobrivio, @pbo0, @rvenditti can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @tocheng, @mmusich, @mtosi, @dgulhan, @seemasharmafnal 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

@francescobrivio
Copy link
Contributor Author

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 3, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8817e4/20965/summary.html
COMMIT: a1e7b0b
CMSSW: CMSSW_12_2_X_2021-12-03-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36348/20965/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: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 41
  • DQMHistoTests: Total histograms compared: 3041955
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3041927
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 40 files compared)
  • Checked 175 log files, 37 edm output root files, 41 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

jfernan2 commented Dec 3, 2021

+1

@mmusich
Copy link
Contributor

mmusich commented Dec 3, 2021

I also profited of this PR to migrate CondTools/BeamSpot/plugins/BeamSpotOnlineRecordsWriter.cc to use an object created on the stack as suggested in this slide and part of cms-AlCaDB/AlCaTools#28.

Just pointing out for the record that while that is possible here and that's the preferred choice stated in the slides, that's by no means necessary (as the current state of affairs falls in the second category enumerated in the reference slides).

@tvami
Copy link
Contributor

tvami commented Dec 3, 2021

+1

  • tests pass
  • code changes in line w the PR description

@smuzaffar smuzaffar modified the milestones: CMSSW_12_2_X, CMSSW_12_3_X Dec 6, 2021
@jpata
Copy link
Contributor

jpata commented Dec 7, 2021

+reconstruction

  • code style only in RecoVertex/BeamSpotProducer
  • no differences

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 7, 2021

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)

@perrotta
Copy link
Contributor

perrotta commented Dec 7, 2021

+1

  • Technical

@cmsbuild cmsbuild merged commit 3fe21cf into cms-sw:master Dec 7, 2021
@francescobrivio francescobrivio deleted the alca-BeamSpotOnlineCodingRules branch December 8, 2021 16:55
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

8 participants