Skip to content

[L1T] Restructure handling of Calorimeter input to Correlator Layer-1 + new TkElectrons in barrel (Phase-2) #48002

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

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

cerminar
Copy link
Contributor

@cerminar cerminar commented May 2, 2025

PR description:

This PR rewrites the Correlator Layer-1 emulator code handling the Calorimeter input objects, enabling more realistic treatment of barrel and endcap data.

In particular:

  • drop the conversion of the input calorimeter objects to PFCluster, moving all needed manipulations (deserialization, calibrations and ID models to the Layer-1 emulator.
    • "decoded" calorimeter objects are now built starting from digitized words via unpackers according to most up-to-date interface documents
  • write PFCluster collections directly from the CTL1 emulator AFTER the decoding storing bit-wise accurate information across the whole calorimenter. This allows acessing data in the final precision for performance studies and ML model training
    • modify the PFCluster data-format to store digitized objects in packed format. This allows retrieving quantized quantities in the ntuplization steps
  • adds more realistic HGCal decoding (update to more recent interface document)
    • add emulation of new multiclass ID within the HGCal decoding step
  • PFCandidate ref to source becomes polymorphic, allowing uniform interface across barrel and endcap
  • GCT EM and Hadronic emulated objects are now decoded and calibrated within the emulator
  • updated emulator of the barrel "TDR" regionizer
  • flexible packed binary format of calorimeter and track objects across barrel and edncap to optimize Firmware resource usage

e-gamma L1T:

  • adds new composite ID model for the barrel cluster to track matching for building TkElectrons

PR validation:

We will soon post some comparison plots.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2025

@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2025

@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2025

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48002/44698

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

@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48002/44699

@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2025

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

It involves the following packages:

  • DataFormats/L1TCorrelator (upgrade, l1)
  • DataFormats/L1TParticleFlow (upgrade, l1)
  • L1Trigger/DemonstratorTools (l1)
  • L1Trigger/L1CaloTrigger (upgrade, l1)
  • L1Trigger/Phase2L1ParticleFlow (upgrade, l1)

@BenjaminRS, @Moanwar, @cmsbuild, @quinnanm, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol, @mmusich, @rovere this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48002/44769

  • Found files with invalid states:

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2025

Pull request #48002 was updated. @BenjaminRS, @Moanwar, @cmsbuild, @quinnanm, @srimanob, @subirsarkar can you please check and sign again.

@cmsbuild cmsbuild mentioned this pull request May 13, 2025
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48002/44799

  • Found files with invalid states:

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

Pull request #48002 was updated. @BenjaminRS, @Moanwar, @cmsbuild, @quinnanm, @srimanob, @subirsarkar can you please check and sign again.

@cerminar
Copy link
Contributor Author

Following up on the menu MET (thanks @RobertJWard ) rates at the DPG we discovered a missing commit in the rebase to 151X. The issue is now addressed.
Validation plots are now available here comparing:
AR 2024 on 131X samples
151X vanilla on 140X samples
151X+PR on 140X samples
In particular:
MET rates: https://cerminar.web.cern.ch/cerminar/plots/152X_validation_140Xv0D0/jetmet_rate
e/g rates: https://cerminar.web.cern.ch/cerminar/plots/152X_validation_140Xv0D0/ctl2_eg_rate
e/g efficiencies: https://cerminar.web.cern.ch/cerminar/plots/152X_validation_140Xv0D0/ctl2_eg_eff
e/g scale and resolution: https://cerminar.web.cern.ch/cerminar/plots/152X_validation_140Xv0D0/ctl2_eg_reso

Short summary: no showstoppers.

More detailed summary: big increase in efficiency for most of e/g objects at the price of some increase in rate (some of the menu WPs will need to be changed). Some increase in rate of PUPPI-MET. Seems related to a change in scale of the barrel. This change is related to the new GCT emulated egamma clusters and it was already seen in previous studies:
https://cerminar.web.cern.ch/cerminar/plots/fp131Xv3-CMSSW14.0.X-GCTEmu/ctl2_eg_reso/

@BenjaminRS
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 16KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-693570/46141/summary.html
COMMIT: b371880
CMSSW: CMSSW_15_1_X_2025-05-14-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48002/46141/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 6 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 64 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 4167455
  • DQMHistoTests: Total failures: 751
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4166684
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 220 log files, 188 edm output root files, 51 DQM output files
  • TriggerResults: found differences in 8 / 49 workflows

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.

5 participants