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

MTD geometry: update pixel index definition from RectangularMTDTopology #44051

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

fabiocos
Copy link
Contributor

PR description:

This PR proposes a solution to the issue #43942 , or at least to the MTD-related part of it. The recent update of ETL digitization in #43762 utilizes also hits outside the active part of the pixel area, and therefore needs the computation of pixel indices also for points very close to the geometrical border of the volume. Due to numerical accuracy, they can exceed the maximum allowed value, producing a chain of problems in the downstream code.

This PR introduces a pixelIndex method in RectangularMTDTopology to correctly compute the indices based on the position in the module, introducing a safety check for border situations. The geometry test is instrumented to possibly catch problems, and this new method is used in the rest of the MTD code where applicable.

PR validation:

The code appears to solve the reproducible crash in recent ASAN builds within the MTD clustering algorithm, and allows the unit test of Geometry/MTDGeometryBuilder to pass smoothly.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 21, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44051/38992

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • Geometry/MTDGeometryBuilder (upgrade, geometry)
  • SimFastTiming/FastTimingCommon (upgrade, simulation)

@bsunanda, @mdhildreth, @cmsbuild, @Dr15Jones, @subirsarkar, @civanch, @makortel, @srimanob can you please review it and eventually sign? Thanks.
@bsunanda this is something you requested to watch as well.
@rappoccio, @antoniovilela, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@fabiocos
Copy link
Contributor Author

please test

@fabiocos
Copy link
Contributor Author

type bugfix

@fabiocos
Copy link
Contributor Author

urgent

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3cabb5/37615/summary.html
COMMIT: 8f5a675
CMSSW: CMSSW_14_1_X_2024-02-21-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44051/37615/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@bsunanda
Copy link
Contributor

+geometry

@srimanob
Copy link
Contributor

+Upgrade

Does this PR need backport to 14_0?

@fabiocos
Copy link
Contributor Author

@srimanob this PR will need a backport to 14_0_X only if we want to backport #43762, which entered just in 14_1_0_pre0. But it should hopefully allow us to have a validation of the new code without trouble, and being capable to ask for such a backport without technical pending problems in case.

@fabiocos
Copy link
Contributor Author

@cms-sw/simulation-l2 any comment?

@civanch
Copy link
Contributor

civanch commented Feb 22, 2024

+1

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

@fabiocos
Copy link
Contributor Author

@cms-sw/orp-l2 this PR is meant to solve the issue of crashes in recent 14_1_X IBs, the sooner it is merged the sooner we may check and verify this

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 1e2c498 into cms-sw:master Feb 23, 2024
11 checks passed
@fabiocos fabiocos deleted the fc-rtopo_index branch March 1, 2024 12:58
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.

6 participants