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

Optimizations to the Scouting Data Formats #37646

Merged
merged 9 commits into from May 3, 2022

Conversation

dsperka
Copy link
Contributor

@dsperka dsperka commented Apr 21, 2022

PR description:

This PR makes some optimizations to the scouting data format. We store the track quantities for pfCandidates as relative to the pfCandidate itself, which results in a better compression. We also dropped pfCandidate mass, because it is redundant w.r.t. pdgId. We also only store non-zero rechit energies, resulting in smaller data size when also storing the associated detIds.

To make the changes apparent in a backward compatible way we added new members to the data formats to flag these changes.

These changes, together with other updates to the HLT configuration not in this PR, result in a scouting event size of ~7.7 kb.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37646/29444

  • This PR adds an extra 28KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@missirol
Copy link
Contributor

@dsperka

Please fix the issue with code-checks, and update the title of the PR.

@dsperka dsperka changed the title From cmssw 12 3 0 pre6 Optimizations to the Scouting Data Formats Apr 21, 2022
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37646/29446

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DataFormats/Scouting (core)
  • HLTrigger/Egamma (hlt)
  • HLTrigger/JetMET (hlt)

@Martin-Grunewald, @Dr15Jones, @smuzaffar, @makortel, @cmsbuild, @missirol can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol, @silviodonato, @rovere 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

Copy link
Contributor

@makortel makortel left a comment

Choose a reason for hiding this comment

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

To make the changes apparent in a backward compatible way we added new members to the data formats to flag these changes.

Technically already adding members breaks the reading of old streamer files (and for ROOT more complex evolution would work as well).

Has any data been written in streamer files already with the earlier version?

DataFormats/Scouting/src/classes_def.xml Outdated Show resolved Hide resolved
DataFormats/Scouting/src/classes_def.xml Outdated Show resolved Hide resolved
<version ClassVersion="3" checksum="1086011373"/>
<version ClassVersion="4" checksum="1250202632"/>
</class>
<class name="Run3ScoutingMuon" ClassVersion="4">
<version ClassVersion="3" checksum="3882497397"/>
<version ClassVersion="4" checksum="4206297195"/>
</class>
<class name="Run3ScoutingPhoton" ClassVersion="4">
<class name="Run3ScoutingPhoton" ClassVersion="5">
<version ClassVersion="5" checksum="1238010495"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move below 4 and use consistent indentation.

Co-authored-by: Marino Missiroli <m.missiroli@cern.ch>
@dsperka
Copy link
Contributor Author

dsperka commented Apr 27, 2022

I don't know if streamer files have been written with previous versions. If yes and thats a problem, we need some mechanism to evolve these data formats. It is not reasonable to assume there will be no changes through the next 4 years.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37646/29519

  • This PR adds an extra 20KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

Pull request #37646 was updated. @Martin-Grunewald, @Dr15Jones, @smuzaffar, @makortel, @cmsbuild, @missirol can you please check and sign again.

@fwyzard
Copy link
Contributor

fwyzard commented Apr 29, 2022

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-88f11e/24343/summary.html
COMMIT: 6a37e98
CMSSW: CMSSW_12_4_X_2022-04-29-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37646/24343/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-88f11e/24343/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-88f11e/24343/git-merge-result

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: 3695038
  • DQMHistoTests: Total failures: 118
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3694898
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 11049.947999999999 KiB( 48 files compared)
  • DQMHistoSizes: changed ( 11634.0,... ): 1802.136 KiB HLT/HIG
  • DQMHistoSizes: changed ( 11634.0,... ): 39.522 KiB HLT/Higgs
  • Checked 205 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

@cmsbuild, please test

For cleaner comparisons

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-88f11e/24350/summary.html
COMMIT: 6a37e98
CMSSW: CMSSW_12_4_X_2022-04-29-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37646/24350/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: 49
  • DQMHistoTests: Total histograms compared: 3704146
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3704122
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 205 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

makortel commented May 3, 2022

+core

  • ~30 % reduction in scouting event size
  • I was overconcerned earlier on the impact to Tier0

@missirol
Copy link
Contributor

missirol commented May 3, 2022

+hlt

@cmsbuild
Copy link
Contributor

cmsbuild commented May 3, 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 May 3, 2022

+1

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

7 participants