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

Update ZdcSimpleRecAlgo_Run3.cc #46295

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

matt2275
Copy link
Contributor

@matt2275 matt2275 commented Oct 7, 2024

PR description:

Fixed an issue where if statement checking wrong variable to guard against seg fault. Fixed issue by updating associated for loop condition to be less than digi_size. I also updated the ChargeWeightedTime to check for potential NAN which will now be set to -99.0

This issue is not critical for 2024 HI data taking. The issue was noticed when running on outdated conditions where the signal Timeslices included 6 which caused the bad if statement to skip the calculation of the ChargeWeightedTime variable since the number of samples in the digi is 6. When the conditions are updated for the signal TS to be 2 and the noise TS to be 1, the if statement will be false and ChargeWeightedTime will be calculated correctly. The for loop will be unchanged since nTS_ = digi_size = 6. There is a small risk of seg fault if nTS_ is updated in ZdcHitReconstructorRun3 to be greater than the digi_size but that would not occur on global reconstructor, only local running if the user happens to update that value incorrectly.

PR validation:

For testing, I ran on this script where previously, the values of the ChargeWeightedTime were NAN and now are positive floats from 0 to 125 ns.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2024

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46295/42117

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2024

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

It involves the following packages:

  • RecoLocalCalo/HcalRecAlgos (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@ReyerBand, @abdoulline, @apsallid, @argiro, @bsunanda, @mariadalfonso, @missirol, @rchatter, @thomreis, @wang0jin, @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

Fixed an issue where if statement checking wrong variable to guard against seg fault. Fixed issue by updating associated for loop condition to be less than digi_size. I also updated the chargedweightedtime to check for potential NAN which will now be set to -99.0

Fix Formatting in ZDCSimpleRecAlgo_Run3.cc
@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2024

Pull request #46295 was updated. @cmsbuild, @jfernan2, @mandrenguyen can you please check and sign again.

@hjbossi
Copy link
Contributor

hjbossi commented Oct 8, 2024

Just to re-emphasize as @matt2275 mentioned, this PR not critical for data-taking (as the updated conditions will avoid this potential issue), but would be good to include in order to make the code more robust. Tagging @mandrenguyen just so he is aware.

@jfernan2
Copy link
Contributor

jfernan2 commented Oct 8, 2024

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2024

+1

Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-21b329/42040/summary.html
COMMIT: 033b7a3
CMSSW: CMSSW_14_2_X_2024-10-07-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/46295/42040/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: 52 differences found in the comparisons
  • DQMHistoTests: Total files compared: 44
  • DQMHistoTests: Total histograms compared: 3331066
  • DQMHistoTests: Total failures: 3854
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3327192
  • 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

@jfernan2
Copy link
Contributor

jfernan2 commented Oct 8, 2024

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2024

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

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 45e883d into cms-sw:master Oct 8, 2024
11 checks passed
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