Skip to content

Updates for new HGCal SiPM channel mapping#48571

Merged
cmsbuild merged 1 commit intocms-sw:masterfrom
CMS-HGCAL:hgcalmapping_SiPMupdatePR
Aug 25, 2025
Merged

Updates for new HGCal SiPM channel mapping#48571
cmsbuild merged 1 commit intocms-sw:masterfrom
CMS-HGCAL:hgcalmapping_SiPMupdatePR

Conversation

@kerstinlovisa
Copy link
Copy Markdown
Contributor

@kerstinlovisa kerstinlovisa commented Jul 18, 2025

PR description:

The channel mapping of the SiPM tileboards is being updated, which requires a few updates in the logic of reading the new channel map with:

  • new mapping of channels mapped over 3 x 10-degree sectors (with global iring and new local iphi)
  • new typecodes
  • high- and low-density tileboards

The new channel mapping logic was presented during the DPG session of the last HGCal Workshop here.

This PR is made together with another PR to cms-data/Geometry-HGCalMapping: 5

PR validation:

The channel mapping was tested with Geometry/HGCalMapping/test/HGCalMappingESSourceTester.cc, and the mapping has been validated with DQM plots for low-density tileboards.
Validation of known input pixel arts was done 2 times, first with a known issue in the input (making the output misspelled with correct mapping):
HGCal_mapping_validation
Secondly with fixed error in the input and more variation in ADC input values for even better validation:
HGCal_mapping_validation2
(Note that rotation of SiPM tileboards is not yet implemented in DQM)

@pfs @jniedzie @jalimena

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented Jul 18, 2025

cms-bot internal usage

@cmsbuild
Copy link
Copy Markdown
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48571/45533

@cmsbuild
Copy link
Copy Markdown
Contributor

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

It involves the following packages:

  • Geometry/HGCalMapping (upgrade, geometry)

@Dr15Jones, @Moanwar, @bsunanda, @civanch, @cmsbuild, @kpedro88, @makortel, @mdhildreth, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks.
@bsunanda, @fabiocos, @martinamalberti 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

@pfs
Copy link
Copy Markdown
Contributor

pfs commented Jul 18, 2025

please test

@pfs
Copy link
Copy Markdown
Contributor

pfs commented Jul 18, 2025

assign hgcal-dpg

@cmsbuild
Copy link
Copy Markdown
Contributor

New categories assigned: hgcal-dpg

@cseez,@felicepantaleo,@pfs,@rovere you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Copy Markdown
Contributor

+1

Size: This PR adds an extra 36KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3c06e2/47270/summary.html
COMMIT: c3c4061
CMSSW: CMSSW_15_1_X_2025-07-18-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/48571/47270/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@IzaakWN
Copy link
Copy Markdown
Contributor

IzaakWN commented Jul 24, 2025

Hi all, is anything else needed for this PR?

Sorry to push, but we need these changes to map and index SiPM-on-tiles on the cassette that will be tested from September.

@IzaakWN
Copy link
Copy Markdown
Contributor

IzaakWN commented Aug 5, 2025

Hello, is anything else needed for this PR or can it be merged?

@Moanwar
Copy link
Copy Markdown
Contributor

Moanwar commented Aug 6, 2025

+Upgrade

@pfs
Copy link
Copy Markdown
Contributor

pfs commented Aug 7, 2025

There are two comments I'm not sure if they were addressed

if (matched) {
wtypecode = sipm_typecode_match[0].str(); // assign sipm typecode as wafer type
} else {
edm::LogWarning("HGCalMappingIndexESSource")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we should throw an exception no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed the warning to an exception.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is a test script, not sure if the bot will test it, but just in case can you run

python -m mypy scripts/make_sipm_channelmap.py

to look for obvious syntax errors? If you can use also some annotations, and add a short comment below each method , e.g.

def get_sequence_for_channel(channel : int, isHD : bool) -> int
       """this method returns the readout sequence for a given channel in a tileboard. 
       density is specified by the isHD parameter"""

for others that may need to use this script eventually later

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is a test script, not sure if the bot will test it,

The bot (or scram b runtests) will not run the script unless there is a test defined in ../test/BuildFile.xml that uses the script.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This code is not really a test, it is the script I used to create the channel map text file that is now in cms-data. I included annotations and comments to the code and I ran the command python -m mypy scripts/make_sipm_channelmap.py which gave this output:
Success: no issues found in 1 source file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks both

@cmsbuild
Copy link
Copy Markdown
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48571/45842

@cmsbuild
Copy link
Copy Markdown
Contributor

Pull request #48571 was updated. @Dr15Jones, @Moanwar, @bsunanda, @civanch, @cmsbuild, @cseez, @felicepantaleo, @kpedro88, @makortel, @mdhildreth, @pfs, @rovere, @srimanob, @subirsarkar can you please check and sign again.

@bsunanda
Copy link
Copy Markdown
Contributor

+geometry

@pfs
Copy link
Copy Markdown
Contributor

pfs commented Aug 20, 2025

+1

@pfs
Copy link
Copy Markdown
Contributor

pfs commented Aug 20, 2025

please test

@cmsbuild
Copy link
Copy Markdown
Contributor

+1

Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3c06e2/47798/summary.html
COMMIT: b1d2732
CMSSW: CMSSW_15_1_X_2025-08-19-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48571/47798/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 4076152
  • DQMHistoTests: Total failures: 33
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4076099
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@IzaakWN
Copy link
Copy Markdown
Contributor

IzaakWN commented Aug 25, 2025

Hi @cms-sw/upgrade-l2 & @cms-sw/orp-l2, can you have a look and sign off, please?

All tests past, and we believe this PR is ready for release. Apologies for the constant badgering, but it would really facilitate cassette's testing & test beams at Fermilab and CERN next week. :)

@Moanwar
Copy link
Copy Markdown
Contributor

Moanwar commented Aug 25, 2025

+Upgrade

@cmsbuild
Copy link
Copy Markdown
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. @ftenchini, @sextonkennedy, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Copy Markdown
Contributor

+1

@cmsbuild cmsbuild merged commit 760b5a9 into cms-sw:master Aug 25, 2025
10 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.

9 participants