Skip to content

[NGT] Fix content of SiPixelClusterSoA for empty Pixel Detector#50900

Merged
cmsbuild merged 2 commits into
cms-sw:masterfrom
JanGerritSchulz:jgs_FixPixelHitModuleStart
May 12, 2026
Merged

[NGT] Fix content of SiPixelClusterSoA for empty Pixel Detector#50900
cmsbuild merged 2 commits into
cms-sw:masterfrom
JanGerritSchulz:jgs_FixPixelHitModuleStart

Conversation

@JanGerritSchulz
Copy link
Copy Markdown
Contributor

PR description:

This PR is introducing the zero-initialization of the SiPixelClusterSoA for events with zero digis in the pixel detector. It fixes an issue that is arising later in the CA pixel tracking when the (previously wrong) values of the SoA are used, leading to crashes. This is described in detail in #50881 .

PR validation:

It is a minor change that only affects empty events in the pixel tracker. I tested on the previously crashing workflow 34090.203, which runs after these changes. For any further validation the bot-tests should be sufficient.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Not a backport.

@JanGerritSchulz
Copy link
Copy Markdown
Contributor Author

type ngt

@JanGerritSchulz
Copy link
Copy Markdown
Contributor Author

type bug-fix

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 7, 2026

cms-bot internal usage

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 7, 2026

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-50900/49258

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

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 7, 2026

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

It involves the following packages:

  • RecoLocalTracker/SiPixelClusterizer (reconstruction)

@Moanwar, @cmsbuild, @jfernan2, @mandrenguyen, @srimanob can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @VinInn, @VourMa, @dkotlins, @elusian, @felicepantaleo, @ferencek, @gpetruc, @mmasciov, @mmusich, @mroguljic, @mtosi, @rovere, @threus, @tsusa this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 7, 2026

enable gpu

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 7, 2026

test parameters:

  • relval_opts = -w upgrade
  • workflows = ph2_hlt, 34090.203

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 7, 2026

@cmsbuild, please test

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 8, 2026

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4b7182/53122/summary.html
COMMIT: e9c2bb7
CMSSW: CMSSW_17_0_X_2026-05-07-1100/el8_amd64_gcc13
Additional Tests: GPU,AMD_MI300X,AMD_W7900,NVIDIA_H100,NVIDIA_L40S
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/50900/53122/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 66
  • DQMHistoTests: Total histograms compared: 4569622
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4569596
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 65 files compared)
  • Checked 276 log files, 236 edm output root files, 66 DQM output files
  • TriggerResults: no differences found

AMD_MI300X Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 331 differences found in the comparisons
  • DQMHistoTests: Total files compared: 13
  • DQMHistoTests: Total histograms compared: 216259
  • DQMHistoTests: Total failures: 39771
  • DQMHistoTests: Total nulls: 33
  • DQMHistoTests: Total successes: 176455
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 12 files compared)
  • Checked 49 log files, 50 edm output root files, 13 DQM output files
  • TriggerResults: found differences in 1 / 12 workflows

AMD_W7900 Comparison Summary

There are some workflows for which there are errors in the baseline:
34634.751 step 2
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • You potentially added 69 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 359 differences found in the comparisons
  • DQMHistoTests: Total files compared: 12
  • DQMHistoTests: Total histograms compared: 184046
  • DQMHistoTests: Total failures: 23865
  • DQMHistoTests: Total nulls: 16
  • DQMHistoTests: Total successes: 160165
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 11 files compared)
  • Checked 48 log files, 50 edm output root files, 12 DQM output files
  • TriggerResults: found differences in 1 / 11 workflows

NVIDIA_H100 Comparison Summary

Summary:

NVIDIA_L40S Comparison Summary

Summary:

Max Memory Comparisons exceeding threshold

@cms-sw/core-l2 , I found 2 workflow step(s) with memory usage exceeding the error threshold:

Expand to see workflows ...
  • Error: Workflow 34496.0_CloseByPGun_CE_E_Front_120um+Run4D121 step2 max memory diff 272.4 exceeds +/- 90.0 MiB
  • Error: Workflow 34500.0_CloseByPGun_CE_H_Coarse_Scint+Run4D121 step2 max memory diff 272.4 exceeds +/- 90.0 MiB

@jfernan2
Copy link
Copy Markdown
Contributor

jfernan2 commented May 8, 2026

+1

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 8, 2026

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-50900/49266

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

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 8, 2026

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

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 8, 2026

@cmsbuild, please test

@JanGerritSchulz
Copy link
Copy Markdown
Contributor Author

So, for future reference:
I just added a resetting of the host-side numbers of the module-start-first-element, the module-start-last-element and the bpix2-cluster-offset. All of these overwrite the zero-initialized nCluster and co values in the PortableDeviceCollection when getClusters() and getDigis() are called. This leads to some other issues down-stream (as noticed by @bfonta in the TrackFromSoAConverter). Again that occurs as only in even more special cases, then the original issue.

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented May 8, 2026

-1

Failed Tests: RelVals
Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4b7182/53146/summary.html
COMMIT: 76fdaaf
CMSSW: CMSSW_17_0_X_2026-05-08-1100/el8_amd64_gcc13
Additional Tests: GPU,AMD_MI300X,AMD_W7900,NVIDIA_H100,NVIDIA_L40S
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/50900/53146/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed RelVals

----- Begin Fatal Exception 08-May-2026 16:46:10 CEST-----------------------
An exception of category 'TiclOutOfBound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmofflineOnPAT_1_step'
   [2] Prefetching for module SingleTopTChannelLeptonDQM_miniAOD/'singleTopElectronMediumDQM_miniAOD'
   [3] Prefetching for module PATMuonSlimmer/'slimmedMuons'
   [4] Prefetching for module PATMuonSelector/'selectedPatMuons'
   [5] Prefetching for module PATMuonProducer/'patMuons'
   [6] Prefetching for module MuonProducer/'muons'
   [7] Prefetching for module PFCandidateListMerger/'particleFlowTmp'
   [8] Prefetching for module PFProducer/'particleFlowTmpBarrel'
   [9] Prefetching for module PFBlockProducer/'particleFlowBlock'
   [10] Prefetching for module PFElecTkProducer/'pfTrackElec'
   [11] Prefetching for module GsfTrackProducer/'electronGsfTracks'
   [12] Prefetching for module CkfTrackCandidateMaker/'electronCkfTrackCandidates'
   [13] Prefetching for module ElectronSeedMerger/'electronMergedSeeds'
   [14] Prefetching for module ElectronSeedProducer/'ecalDrivenElectronSeeds'
   [15] Prefetching for module EGammaSuperclusterProducer/'particleFlowSuperClusterHGCal'
   [16] Prefetching for module TracksterLinksProducer/'ticlTracksterLinksSuperclusteringDNN'
   [17] Prefetching for module TrackstersProducer/'ticlTrackstersCLUE3DHigh'
   [18] Calling method for module TICLLayerTileProducer/'ticlLayerTileProducer'
Exception Message:
bin index -2147479490 is out of bounds (container size is 4284). It was generated from eta: -23123.967 phi: -nan
----- End Fatal Exception -------------------------------------------------

AMD_MI300X Comparison Summary

Summary:

AMD_W7900 Comparison Summary

Summary:

NVIDIA_H100 Comparison Summary

Summary:

NVIDIA_L40S Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 336 differences found in the comparisons
  • DQMHistoTests: Total files compared: 13
  • DQMHistoTests: Total histograms compared: 216259
  • DQMHistoTests: Total failures: 42317
  • DQMHistoTests: Total nulls: 33
  • DQMHistoTests: Total successes: 173909
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 12 files compared)
  • Checked 49 log files, 50 edm output root files, 13 DQM output files
  • TriggerResults: found differences in 1 / 12 workflows

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 8, 2026

-1

the failure is related to #42470 (and happens in step3, step3-like the step2 --previously failing-- now runs correctly)

@mmusich
Copy link
Copy Markdown
Contributor

mmusich commented May 8, 2026

ignore tests-rejected with ib-failure

@jfernan2
Copy link
Copy Markdown
Contributor

+1

@cmsbuild
Copy link
Copy Markdown
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (test failures were overridden). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @ftenchini, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Copy Markdown
Contributor

+1

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