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

PPS fixes in using DBOutputService followup #36180

Merged
merged 5 commits into from Dec 7, 2021
Merged

Conversation

fabferro
Copy link
Contributor

@fabferro fabferro commented Nov 19, 2021

PR description:

Fixes in use of DBOutputService for PPS code.
Followup of PR#36008.

PR validation:

Validated by PPS DB experts. The payloads are produced correctly.

@fabferro
Copy link
Contributor Author

@tvami here is the draft RP

@tvami
Copy link
Contributor

tvami commented Nov 19, 2021

@tvami here is the draft RP

Thanks!

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26755

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fabferro (Fabrizio Ferro) for master.

It involves the following packages:

  • CondTools/CTPPS (db)
  • CondTools/Geometry (db)

@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks.
@cvuosalo, @mmusich, @bsunanda 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

edm::Service<cond::service::PoolDBOutputService> poolDbService;
if (poolDbService.isAvailable()) {
poolDbService->writeOneIOV(*pCTPPSPixelAnalysisMask, analysismaskiov_, /*m_record*/ record_);
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_);
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, record_);

Copy link
Contributor Author

@fabferro fabferro Nov 26, 2021

Choose a reason for hiding this comment

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

@tvami here I get from @wpcarvalho (who is testing the package) the following comment:
""It is saving a CTPPSPixelDAQMapping const* object instead of a CTPPSPixelDAQMapping
Removing "&" in
const auto mapping = &es.getData(tokenMapping_);
would fix the issue.""
I'm a bit puzzled now...

edm::Service<cond::service::PoolDBOutputService> poolDbService;
if (poolDbService.isAvailable()) {
poolDbService->writeOneIOV(*pCTPPSPixelDAQMapping, daqmappingiov_, /*m_record*/ record_);
poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_);
poolDbService->writeOneIOV(mapping, daqmappingiov_, record_);

&tAR = tokenAlignmentReal_,
&tAM = tokenAlignmentMisaligned_]() -> const CTPPSRPAlignmentCorrectionsData* {
if (r == "CTPPSRPAlignmentCorrectionsDataRcd") {
return &eS.getData(tAI);
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont really understand why this couldnt just be

Suggested change
return &eS.getData(tAI);
return &eS.getData(tokenAlignmentIdeal_);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because, in my understanding, tAI is the captured variable. In fact, if I do your change I get compilation errors.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26797

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

Pull request #36180 was updated. @cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please check and sign again.

@tvami
Copy link
Contributor

tvami commented Nov 22, 2021

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20681/summary.html
COMMIT: 5c96205
CMSSW: CMSSW_12_2_X_2021-11-22-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36180/20681/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: 42
  • DQMHistoTests: Total histograms compared: 3247021
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3246999
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 41 files compared)
  • Checked 177 log files, 37 edm output root files, 42 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26913

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

Pull request #36180 was updated. @cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please check and sign again.

@tvami
Copy link
Contributor

tvami commented Nov 26, 2021

@fabferro looks good to me, can you please convert it to a full PR?

@tvami
Copy link
Contributor

tvami commented Nov 26, 2021

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20793/summary.html
COMMIT: b0ab699
CMSSW: CMSSW_12_2_X_2021-11-26-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36180/20793/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: 42
  • DQMHistoTests: Total histograms compared: 3247873
  • DQMHistoTests: Total failures: 5
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3247845
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 41 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 177 log files, 37 edm output root files, 42 DQM output files
  • TriggerResults: no differences found

@fabferro fabferro marked this pull request as ready for review November 27, 2021 11:01
@fabferro
Copy link
Contributor Author

Hi @tvami, do you think this PR is ok for merging? Thanks.

@tvami
Copy link
Contributor

tvami commented Nov 30, 2021

It's fine for me, I wanted @ggovi to have the final word on it tho, let me ask him!

@tvami
Copy link
Contributor

tvami commented Dec 5, 2021

+db

  • I think @ggovi had a look but maybe just forgot to comment?

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 5, 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)

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

perrotta commented Dec 7, 2021

+1

@cmsbuild cmsbuild merged commit b5b1719 into cms-sw:master Dec 7, 2021
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

5 participants