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

Fix EcalDQMStatusWriter to watch runs and load the input file #35466

Merged
merged 2 commits into from Sep 30, 2021

Conversation

thomreis
Copy link
Contributor

PR description:

After the esConsumes migration of the EcalDQMStatusWriter in #34963 the beginRun() function was not called anymore by the framework because the module has been made an edm::one::EDAnalyzer<>. This means that the input file was not loaded and the module would have added only empty objects to the records. This PR changes the module type to a edm::one::EDAnalyzer<edm::one::WatchRuns> in order to call the beginRun() function. The configuration file, which had been outdated, was updated to send the correct parameters to the module.
In addition, the config file for readEcalDQMStatus was removed since the EcalDQMStatusReader module it is supposed to configure does not exist in CMSSW.

PR validation:

This module is run manually only and it has been tested by running the DQM/EcalCommon/data/writeEcalDQMStatus.py configuration, which is configured to produce an sqlite file with the two records.

… to date. Remove config file for non-existing EcalDQMStatusReader plugin.
@cmsbuild cmsbuild added this to the CMSSW_12_1_X milestone Sep 29, 2021
@thomreis thomreis changed the title Fix EcalDQMStatusWriter to watching runs and load the input file Fix EcalDQMStatusWriter to watch runs and load the input file Sep 29, 2021
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35466/25621

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @thomreis (Thomas Reis) for master.

It involves the following packages:

  • DQM/EcalCommon (dqm)
  • DQM/EcalMonitorDbModule (dqm)

@emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please review it and eventually sign? Thanks.
@rchatter, @simonepigazzini, @thomreis, @argiro 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

@thomreis
Copy link
Contributor Author

@abhih1 @tanmaymudholkar FYI

@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d1676c/19230/summary.html
COMMIT: 366bfbf
CMSSW: CMSSW_12_1_X_2021-09-28-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35466/19230/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: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 40
  • DQMHistoTests: Total histograms compared: 3211080
  • DQMHistoTests: Total failures: 11
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3211046
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 39 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@thomreis
Copy link
Contributor Author

hold

Do not merge this yet please. I need to make one more check. Probably unrelated to this PR but I want to be sure.

@cmsbuild
Copy link
Contributor

Pull request has been put on hold by @thomreis
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

@thomreis
Copy link
Contributor Author

unhold

@cmsbuild cmsbuild removed the hold label Sep 29, 2021
@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35466/25632

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #35466 was updated. @emanueleusai, @ahmad3213, @jfernan2, @rvenditti, @pbo0, @pmandrik can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d1676c/19244/summary.html
COMMIT: b0771e7
CMSSW: CMSSW_12_1_X_2021-09-28-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35466/19244/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: 1 differences found in the comparisons
  • DQMHistoTests: Total files compared: 40
  • DQMHistoTests: Total histograms compared: 3211080
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3211055
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 39 files compared)
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

@thomreis apparently the PR is fine, but since the real validation comes from you in the form of the db check, I will wait for your green light before approving.
Thanks

@thomreis
Copy link
Contributor Author

Hi @jfernan2 in the current state the xml dump of the created payloads looks reasonable. From my side I can give the green light. Thanks for approving.

@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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

  • Fix

#process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
process.load("CondCore.CondDB.CondDB_cfi")
process.CondDB.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
process.CondDB.connect = 'sqlite_file:mask-ECAL.db'
Copy link
Contributor

Choose a reason for hiding this comment

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

@thomreis This is the change producing a valid sqlite... nothing to do with conddb dump

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without changing the writeOne() functions in DQM/EcalMonitorDbModule/plugins/EcalDQMStatusWriter.cc from pointer based to reference based the produced sqlite file was not valid. Or at least the payload in it could not be printed.

void EcalDQMStatusWriter::analyze(edm::Event const &, edm::EventSetup const &_es) {
cond::service::PoolDBOutputService &dbOutput(*edm::Service<cond::service::PoolDBOutputService>());
if (firstRun_ == dbOutput.endOfTime())
return;

dbOutput.writeOne(&channelStatus_, firstRun_, "EcalDQMChannelStatusRcd");
dbOutput.writeOne(&towerStatus_, firstRun_, "EcalDQMTowerStatusRcd");
dbOutput.writeOne(channelStatus_, firstRun_, "EcalDQMChannelStatusRcd");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @ggovi
The changes that I needed to make in order to get conddb dump to work are these two lines.

Copy link
Contributor

Choose a reason for hiding this comment

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

@thomreis Can you please dump the error that you get with conddb dump?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I have also sent it in an email to you last week already.

$ conddb --db mask-ECAL.db dump a68ed854e09eb04addd68ec350b820a4e171ca66
[2021-09-29 16:03:38,098] INFO: Connecting to mask-ECAL.db [sqlite:///mask-ECAL.db]
[2021-09-29 16:03:38,150] INFO: Found payload of type EcalCondTowerObjectContainer<EcalDQMStatusCode>*
[2021-09-29 16:03:39,303] WARNING: No XML converter for payload class EcalCondTowerObjectContainer<EcalDQMStatusCode>* found in the built-in library.

Copy link
Contributor

Choose a reason for hiding this comment

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

@thomreis thanks, i'll investigate.

@thomreis thomreis deleted the ecaldqm-dqmstatuswriter-update branch October 6, 2021 10:49
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