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

[backport] Fix ECAL TPG emulator discrepancy for saturated strips #38353

Conversation

valsdav
Copy link
Contributor

@valsdav valsdav commented Jun 13, 2022

Backport of #38272 to 12_4_X

PR description:

This PR fixes a discrepancy between the ECAL frontend trigger primitive formation and the emulator code in CMSSW for saturated strips.

In the frontend hardware, after the filter and peak-finder blocks, the even and odd amplitude outputs are checked for saturation and truncated to 12 bits. After that, the even and odd amplitudes are compared with 12 bits precision (only in the EB Fenix TCP board) to determine the double weights flags.

In the emulator the saturation was not checked at that stage and therefore the even/odd comparison was performed with 18 bits precision.

This was causing data/emulator discrepancy in the saturated TPs observed during double weights test with splashes events in April.

In the frontend hardware after the sliding window applied in the peak-finder block the output
of each filter is saturated at 12bits. Then, the even and odd outputs are compared.

In the emulator the saturation was not checked and the odd and even amplitudes were compared at 18bits.
This PR fixes the problem.
@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 13, 2022

A new Pull Request was created by @valsdav (Davide Valsecchi) for CMSSW_12_4_X.

It involves the following packages:

  • SimCalorimetry/EcalTrigPrimAlgos (l1)

@epalencia, @cmsbuild, @cecilecaillol, @rekovic can you please review it and eventually sign? Thanks.
@rchatter, @simonepigazzini, @rovere, @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

@valsdav
Copy link
Contributor Author

valsdav commented Jun 13, 2022

Backport of #38272

@valsdav
Copy link
Contributor Author

valsdav commented Jun 14, 2022

Hi @l1-l2, would you mind starting the test for this backport? Thanks a lot

@epalencia
Copy link
Contributor

Please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b19a26/25505/summary.html
COMMIT: b751607
CMSSW: CMSSW_12_4_X_2022-06-13-2300/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38353/25505/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: 50
  • DQMHistoTests: Total histograms compared: 3679963
  • DQMHistoTests: Total failures: 13
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3679927
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

@cms-sw/l1-l2 this PR with a fix for the ECAL TPG emulator at Run3 is eligible to be merged in 12_4_0, provided you agree with it and sign it

@cecilecaillol
Copy link
Contributor

+l1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_12_4_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_5_X is complete. 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

@cmsbuild cmsbuild merged commit 9901112 into cms-sw:CMSSW_12_4_X Jun 15, 2022
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