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

BeamSpot Payload Inspector: introduce payload parameters comparator #37143

Merged

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Mar 4, 2022

PR description:

The goal of this PR is to introduce a new type of class for the BeamSpot Payload Inspector that allows to compare the BeamSpot parameters for two different payloads, either two different IOVs form the same tag, or from two different tags .
This is done via a novel templated DisplayParametersDiff class that will accept both BeamSpotObjects and BeamSpotOnlineObjects data types.
The unit tests of the package CondCore/BeamSpotPlugins are enhanced in order to test the newly added functionality.

PR validation:

Tested with the following commands:

getPayloadData.py \
    --plugin pluginBeamSpot_PayloadInspector \
    --plot plot_BeamSpotParametersDiffSingleTag \
    --tag BeamSpotObjects_PCL_byLumi_v0_prompt \
    --time_type Lumi \
    --iovs '{"start_iov": "1406859487477814", "end_iov": "1488257707672138"}' \
    --db Prod \
    --test ;

and:

getPayloadData.py \
    --plugin pluginBeamSpot_PayloadInspector \
    --plot plot_BeamSpotParametersDiffTwoTags \
    --tag BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v2_mc \
    --time_type Run \
    --iovs '{"start_iov": "1", "end_iov": "1"}' \
    --tagtwo BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v1_mc \
    --iovstwo '{"start_iov": "1", "end_iov": "1"}' \
    --db Prod \
    --test ;

and obtained the following plots:

BeamSpotParametersDiffSingleTag BeamSpotParametersDiffTwoTags
7022e9d6-5ff1-4aed-bcd2-9dd30d352dfd 35067cfa-0358-4943-b86a-2df1c6ee7f99

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

N/A

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37143/28682

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2022

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

  • CondCore/BeamSpotPlugins (db)

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

@mmusich
Copy link
Contributor Author

mmusich commented Mar 4, 2022

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-28be95/22847/summary.html
COMMIT: d20ead3
CMSSW: CMSSW_12_3_X_2022-03-04-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37143/22847/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: 5 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3987741
  • DQMHistoTests: Total failures: 8
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3987711
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 204 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Mar 4, 2022

+db

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2022

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 Mar 5, 2022

please test

I can hardly believe that the differences in the haloTaggerMVA for patPhotons are originated by this PR, eg:

image

Let rerun the tests, to see if it is reproducible, at least.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 5, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-28be95/22873/summary.html
COMMIT: d20ead3
CMSSW: CMSSW_12_3_X_2022-03-05-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37143/22873/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: 49
  • DQMHistoTests: Total histograms compared: 3987741
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3987711
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 48 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 204 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

perrotta commented Mar 6, 2022

So, differences are still there, but they now look different than in the previous comparisons. This is the same wf 136.7611 that was reported above

image

While having non identical distributions in consecutive runs of the bot tests probably confirms that there is some non reproducibily issue for those patPhotons' haloTaggerMVA, I don't remember having seen it in other PR tests.
@mmusich @tvami do you have any idea whether these distributions can be touched in any way by the updates implemented with this PR?

@mmusich
Copy link
Contributor Author

mmusich commented Mar 6, 2022

@perrotta

do you have any idea whether these distributions can be touched in any way by the updates implemented with this PR?

There's no way that changes in these classes can affect anything in any relval.
I think these differences might be caused by some uninitialized variable in #36901.
Also notice that this particular variable started to be included in the reco comparison also recently (see cms-sw/cms-bot#1717)

@mmusich
Copy link
Contributor Author

mmusich commented Mar 6, 2022

since this was being held anyway, I profited to push some other improvement.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 6, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37143/28703

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 6, 2022

Pull request #37143 was updated. can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Mar 6, 2022

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 6, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-28be95/22885/summary.html
COMMIT: 8c57f57
CMSSW: CMSSW_12_3_X_2022-03-05-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37143/22885/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: 49
  • DQMHistoTests: Total histograms compared: 3987741
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3987717
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 204 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Mar 6, 2022

+1

@qliphy
Copy link
Contributor

qliphy commented Mar 7, 2022

+1
differences in the haloTaggerMVA for patPhotons is not related to this PR, and will be fixed later (related to #36901)

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