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

SiStripClusters2ApproxClusters: run peakFilter only if cluster is usable #42486

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Aug 7, 2023

resolves #42131
resolves #42162

PR description:

The goal of this PR is to solve the issues #42131 and #42132.
Those issues are caused because there is a condition (SiStripNoises) which is read off its domain from this call:

cut_ = std::min<float>(seedCutMIPs * mip, seedCutSN * noiseObj_->getNoise(firstStrip + 1, noises_));

when it looks for the noise of strip n. 768 for Detid 369120277.
Having established at #42162 (comment) that for this detId (and similar modules), the strip range is from 0 to 767 (also independently, see mmusich@c1e1ca0), thus excluding possible issues with conditions, and following the line of thought that (see #42162 (comment)) a very similar code was already used in

which I think it has been used since ever for the Strip seeded iterations, it begs the question on why this was not spotted before in StripSubClusterShapeTrajectoryFilter.
I propose in this PR to follow (almost) the same prescription used in that file before running the filter, namely using the output of ClusterShapeHitFilter::getSizes

and the check on the measured (and predicted) cluster widths

if (std::abs(hitPredPos) < 1.5f && hitStrips <= 2) {
return true;
}

Since ClusterShapeHitFilter::getSizes is not called with the measured trajectory direction, but rather with an approximated direction (the line joining the BeamSpot to the cluster) I enlarge the window to encompass 2 cluster pitches rather than 1.5.

PR validation:

In CMSSW_13_3_DBG_X_2023-08-01-2300 run successfully runTheMatrix.py -l 140.58 --ibeos

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, but to be backported to CMSSW_13_2_X.

@cmsbuild cmsbuild added this to the CMSSW_13_3_X milestone Aug 7, 2023
@mmusich
Copy link
Contributor Author

mmusich commented Aug 7, 2023

type bug-fix

@mmusich
Copy link
Contributor Author

mmusich commented Aug 7, 2023

Cc: @Ksavva1021

@mmusich
Copy link
Contributor Author

mmusich commented Aug 7, 2023

test parameters:

  • workflow = 140.58

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42486/36492

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

  • RecoLocalTracker/SiStripClusterizer (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@mtosi, @echabert, @VourMa, @GiacomoSguazzoni, @yduhm, @robervalwalsh, @JanFSchulte, @rovere, @gbenelli, @missirol, @threus, @felicepantaleo, @gpetruc, @mmusich, @VinInn, @alesaggio, @jlidrych this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor Author

mmusich commented Aug 7, 2023

@cmsbuild, please test for CMSSW_13_3_DBG_X

@mmusich
Copy link
Contributor Author

mmusich commented Aug 7, 2023

concerning the HeaderConsistency failure reported by the cms-bot:

Screenshot from 2023-08-07 16-56-55

I believe it's not coming from this PR (see log)

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2023

-1

Failed Tests: HeaderConsistency RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db4e21/34130/summary.html
COMMIT: 2bd7e5a
CMSSW: CMSSW_13_3_DBG_X_2023-08-03-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42486/34130/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db4e21/34130/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db4e21/34130/git-merge-result

RelVals

----- Begin Fatal Exception 07-Aug-2023 21:16:49 CEST-----------------------
An exception of category 'Invalid DetId' occurred while
   [0] Calling method for module HGCalBackendLayer1Producer/'l1tHGCalBackEndLayer1Producer'
   [1] Prefetching for EventSetup module HGCalTriggerGeometryESProducer/'l1tHGCalTriggerGeometryESProducer'
   [2] Calling method for EventSetup module HGCalGeometryESProducer/'HFNoseGeometryESProducer'
Exception Message:
Cannot initialize HGCSiliconDetId from 6c8bd800
----- End Fatal Exception -------------------------------------------------

@mmusich
Copy link
Contributor Author

mmusich commented Aug 8, 2023

-1
Failed Tests: HeaderConsistency RelVals

so analyzing the output of the bot tests:

I am going to relaunch the tests with the regular build to get rid of the failures.

@mmusich
Copy link
Contributor Author

mmusich commented Aug 8, 2023

@cmsbuild, please test

@mmusich mmusich marked this pull request as ready for review August 8, 2023 06:59
mmusich added a commit to mmusich/cmssw that referenced this pull request Aug 8, 2023
… is incompatible with the SiStripApproximateClusterCollection in cms-sw#42486
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2023

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db4e21/34149/summary.html
COMMIT: 2bd7e5a
CMSSW: CMSSW_13_3_X_2023-08-07-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/42486/34149/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

The relvals timed out after 4 hours.

Comparison Summary

Summary:

  • You potentially removed 3 lines from the logs
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3212500
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3212478
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 161 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@mmusich
Copy link
Contributor Author

mmusich commented Aug 8, 2023

-1
Failed Tests: RelVals-INPUT

let's try again.

@mmusich
Copy link
Contributor Author

mmusich commented Aug 8, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db4e21/34160/summary.html
COMMIT: 2bd7e5a
CMSSW: CMSSW_13_3_X_2023-08-08-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/42486/34160/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 16 lines from the logs
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3212500
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3212475
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 161 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2023

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

@perrotta
Copy link
Contributor

perrotta commented Aug 8, 2023

+1

@cmsbuild cmsbuild merged commit 2e956e4 into cms-sw:master Aug 8, 2023
@mmusich mmusich deleted the fixDBG_ASAS_RAWprime branch August 8, 2023 16:46
mmusich added a commit to mmusich/cmssw that referenced this pull request Aug 11, 2023
… is incompatible with the SiStripApproximateClusterCollection in cms-sw#42486
mmusich added a commit to mmusich/cmssw that referenced this pull request Aug 11, 2023
… is incompatible with the SiStripApproximateClusterCollection in cms-sw#42486
mmusich added a commit to mmusich/cmssw that referenced this pull request Aug 18, 2023
…put data is incompatible with the SiStripApproximateClusterCollection in cms-sw#42486"

This reverts commit e016e14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment