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

Bugfix in simulation of scintillator noise at startup #46142

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

mmfsz
Copy link

@mmfsz mmfsz commented Sep 27, 2024

PR description:

This PR fixes a bug in the settings for the simulation of the noise in the HGCal scintillator region for the startup scenario. The scaling of the noise by the dose factor was not being turned off for the startup scenario. The bug was discovered after looking at hits and occupancies in the scintillator region [1]. The fix was validated by comparing samples produced with the new settings and samples produced with the old settings but with the flags to ignore the effect of dose and fluence. The results were shown to agree, validating the new settings.

[1] https://indico.cern.ch/event/1413991/#9-occupancy-studies-in-the-sip

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 27, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • SimCalorimetry/HGCalSimProducers (upgrade, simulation)

@Moanwar, @civanch, @cmsbuild, @kpedro88, @mdhildreth, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks.
@apsallid, @bsunanda, @cseez, @hatakeyamak, @lgray, @pfs, @rovere, @sameasy, @sethzenz, @vandreev11, @youyingli 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

@kpedro88
Copy link
Contributor

please test

@@ -240,7 +240,7 @@ def HGCal_setRealisticStartupNoise(process):
(for instance turning on the 0th bit turns off the impact of fluence in Si)
"""
process=HGCal_setRealisticNoiseSi(process,byDose=True,byDoseAlgo=1)
process=HGCal_setRealisticNoiseSci(process,byDose=True,byDoseAlgo=2+8+16,referenceIdark=0.125,referenceXtalk=0.01)
process=HGCal_setRealisticNoiseSci(process,byDose=True,byDoseAlgo=2+16+32,byDoseFactor=0,referenceIdark=0.125,referenceXtalk=0.01)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you provide some explanation of the meaning of the numerical values in byDoseAlgo? (either in a comment, or by turning these into individually named variables rather than magic numbers)

Copy link
Contributor

Choose a reason for hiding this comment

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

The meaning of the bits is explained in the header file: https://github.com/cms-sw/cmssw/blob/master/SimCalorimetry/HGCalSimAlgos/interface/HGCalSciNoiseMap.h#L14-L21
The bug was that previously 8 was suppressing the scaling of the signal light yield with the tile area - definitely not what we want. 32 is added at startup as it will force to ignore the the scaling of the noise with the fluence (and signal with dose).

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @pfs !

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals-INPUT
Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5eb691/41797/summary.html
COMMIT: 98897a5
CMSSW: CMSSW_14_2_X_2024-09-27-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/46142/41797/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

  • 2022.1010012022.101001_RunEGamma2022C_10k/step1_dasquery.log
  • 2023.0010012023.001001_RunDisplacedJet2023C_10k/step1_dasquery.log
  • 2022.101001DAS Error
Expand to see more relval errors ...
  • 2023.001001

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 109 differences found in the comparisons
  • DQMHistoTests: Total files compared: 44
  • DQMHistoTests: Total histograms compared: 3331342
  • DQMHistoTests: Total failures: 2915
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3328407
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 43 files compared)
  • Checked 193 log files, 163 edm output root files, 44 DQM output files
  • TriggerResults: no differences found

@kpedro88
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 12KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5eb691/41808/summary.html
COMMIT: 98897a5
CMSSW: CMSSW_14_2_X_2024-09-28-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/46142/41808/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@civanch
Copy link
Contributor

civanch commented Sep 29, 2024

+1

@Moanwar
Copy link
Contributor

Moanwar commented Sep 29, 2024

+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. @mandrenguyen, @sextonkennedy, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit ac55036 into cms-sw:master Sep 29, 2024
11 checks passed
@mmfsz mmfsz deleted the HGCalSimProducers-bugfix branch September 30, 2024 16:56
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.

7 participants