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

HGCAL: fix interpolation boundaries for ToA #28777

Merged
merged 3 commits into from Jan 29, 2020

Conversation

amartelli
Copy link
Contributor

@amartelli amartelli commented Jan 22, 2020

This PR

  • fixes a bug spotted by @adas1994 in the computation of the time-of-arrival in the HGCAL digi
  • adds some comments to help the understanding of the code
  • fixes in the way in which the PCaloHits are cumulated, to deal with PCaloHIts having exactly the same time stamps (very few cases only observed in high PU)

Quick reminder (how ToA firing works):

  • In each Silicon cell, the ToA is fired when the cumulative charge is at threshold (12fC).
  • Since a full pulse shape is not available, the single time stamps deposited by G4 in each cell (each with a time and a charge) are used:
    - the time-sorted list of time stamps is considered, and their cumulative charge computed.
    - the 2 time stamps with cumulative charge around the threshold (the one before, and the one after) are picked as reference
    - the ToA is extracted with the linear interpolation between the 2 chosen time-stamps, taking the value at which the interpolation crosses the 12fC threshold.

Explanation of the bug fix:

  • The bug is in the interpolation of the cumulated charge vs time, to compute the ToA at threshold,
    and consists in the further cumulation of the already cumulated charges.
  • The first cumulation of time-stamps is correct
  • The identification of the cells with ToA available is correct
  • The bug only involves the identification of the time stamps used to interpolate and extract the ToA

We expect an impact if the delay among time stamps is "big", and this is what happens with PU.
The validation run, comparing the performance between the TDR version (with bug) and this PR version show a negligible impact also at 200PU.

Bug, fix and validation documented in the slides:
https://cernbox.cern.ch/index.php/s/gMcLoFLjHXBpNdi

For reference @rovere

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28777/13444

  • 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

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28777/13446

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

SimCalorimetry/HGCalSimProducers

@cmsbuild, @civanch, @kpedro88, @mdhildreth can you please review it and eventually sign? Thanks.
@vandreev11, @sethzenz, @makortel, @kpedro88, @lgray, @cseez, @apsallid, @pfs, @deguio, @hatakeyamak this is something you requested to watch as well.
@davidlange6, @silviodonato, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Jan 23, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 23, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/4330/console Started: 2020/01/23 14:12

@cmsbuild
Copy link
Contributor

+1
Tested at: 583c094
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c0ee2f/4330/summary.html
CMSSW: CMSSW_11_1_X_2020-01-23-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@amartelli
Copy link
Contributor Author

Hi @kpedro88
for me CERNbox works, so in case I attach the slides here
HGCAL_genTOA.pdf

@kpedro88
Copy link
Contributor

+upgrade

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

@silviodonato
Copy link
Contributor

please test 23434.1001

@silviodonato
Copy link
Contributor

@trtomei @fwyzard be aware of this bug in 11_0_X GEN-SIM-DIGI, even if the bug has a "negligible impact also at 200PU"

@silviodonato
Copy link
Contributor

please test workflow 23434.1001

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 29, 2020

The tests are being triggered in jenkins.
Test Parameters:

@cmsbuild
Copy link
Contributor

+1
Tested at: 583c094
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c0ee2f/4400/summary.html
CMSSW: CMSSW_11_1_X_2020-01-28-2300
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c0ee2f/4400/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-c0ee2f/23434.1001_TTbar_14TeV+RecoFullGlobalPU_TestOldDigi_2026D49PU+HARVESTFullGlobalPU_2026D49PU

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 36 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2697090
  • DQMHistoTests: Total failures: 171
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2696573
  • DQMHistoTests: Total skipped: 346
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 0d1ebd6 into cms-sw:master Jan 29, 2020
@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2020 via email

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

6 participants