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

HGCAL Electronics mapping (v2) #44729

Closed
wants to merge 2 commits into from

Conversation

pfs
Copy link
Contributor

@pfs pfs commented Apr 12, 2024

This PR supersedes #43751. It is rebased on top of CMSSW_14_1_0_pre2 and it's made of a single commit which squashes all the ones in #43751. Below the description and the validation of #43751 are copied and updated

PR description:

Adding the infrastructure needed to

  • provide the electronics to detector identifier mapping
  • provide the dense indexer for unpacked data and conditions (made available through EventSetup)
  • provide detailed information on the cell and modules (made available through EventSetup in SoAs)

The tool has been discussed in

It relies on the mappings in cms-data/Geometry-HGCalMapping#1

The requests to leave EVENTSETUP_RECORD_REG and COND_SERIALIZABLE commented are not implemented as they generate compilation errors and break the testers. The HGCAL DPG is however aware that the move to CondDB is to occur in a future time-scale (end of this year/begin on next year).

PR validation:

This PR is not expected to impact any workflow thus we expect 100% success in the tests. The PR is however accompanied by a series of unit tests and analyzers (under the test) sub-directories. They have been used to validate the content produced by the new pieces of code being added to the repository.

@kerstinlovisa @jalimena

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 12, 2024

cms-bot internal usage

@pfs pfs mentioned this pull request Apr 12, 2024
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44729/39940

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • CondFormats/DataRecord (alca, db)
  • CondFormats/HGCalObjects (alca, db, upgrade)
  • DataFormats/HGCalDigi (simulation, upgrade)
  • EventFilter/HGCalRawToDigi (reconstruction, upgrade)
  • Geometry/HGCalMapping (geometry, upgrade)
  • RecoLocalCalo/HGCalRecProducers (reconstruction, upgrade)

@Dr15Jones, @civanch, @makortel, @mdhildreth, @srimanob, @cmsbuild, @bsunanda, @mandrenguyen, @jfernan2, @saumyaphor4252, @consuegs, @perrotta, @francescobrivio, @subirsarkar can you please review it and eventually sign? Thanks.
@missirol, @fabiocos, @rovere, @seemasharmafnal, @yuanchao, @edjtscott, @lecriste, @tocheng, @cseez, @JanChyczynski, @youyingli, @sethzenz, @Martin-Grunewald, @vandreev11, @rsreds, @bsunanda, @hatakeyamak, @lgray, @sameasy, @mmusich, @apsallid, @PonIlya, @felicepantaleo this is something you requested to watch as well.
@sextonkennedy, @antoniovilela, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@pfs
Copy link
Contributor Author

pfs commented Apr 12, 2024

please test with cms-data/Geometry-HGCalMapping#1

@jfernan2
Copy link
Contributor

type hgcal

@cmsbuild cmsbuild added the hgcal label Apr 12, 2024
@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-43aac2/38823/summary.html
COMMIT: 442b7f2
CMSSW: CMSSW_14_1_X_2024-04-12-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44729/38823/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 1 errors in the following unit tests:

---> test testHGCalMapFileParser had ERRORS

Comparison Summary

Summary:

@pfs
Copy link
Contributor Author

pfs commented Apr 13, 2024

please test with cms-data/Geometry-HGCalMapping#1

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44729/39947

@cmsbuild
Copy link
Contributor

Pull request #44729 was updated. @mandrenguyen, @makortel, @subirsarkar, @srimanob, @civanch, @consuegs, @bsunanda, @mdhildreth, @francescobrivio, @jfernan2, @perrotta, @Dr15Jones, @saumyaphor4252 can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-43aac2/38832/summary.html
COMMIT: d51b630
CMSSW: CMSSW_14_1_X_2024-04-13-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44729/38832/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-43aac2/38832/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-43aac2/38832/git-merge-result

Comparison Summary

Summary:

  • You potentially added 40 lines to the logs
  • Reco comparison results: 44 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3317870
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3317850
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@@ -0,0 +1 @@
#include "CondFormats/HGCalObjects/src/headers.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is CondFormats/HGCalObjects/src/headers.h needed at all?
Just #include the necessary here directly and remove the file headers.h (as @makortel commented in the original PR)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, there was some discussion about it in the original PR, which unfortunately gets lost once passing to a new PR.
In any case, the comment of including here the necessary header files without passing through the inclusion of the intermediate header.h remains

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks - indeed we followed strictly as recommended in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCondObjectsTutorial . Other variations tried resulted in compilation errors

Copy link
Contributor

Choose a reason for hiding this comment

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

What I found out in #43751 (comment) is that scram b has a specific "CondFormat serialization" phase that requires the headers.h to exist. I'd suggest to document that requirement better :)

@@ -39,27 +42,31 @@ class HGCalElectronicsId {
*/
HGCalElectronicsId() : value_(0) {}
explicit HGCalElectronicsId(
Copy link
Contributor

Choose a reason for hiding this comment

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

The explicit keyword was removed in the previous PR.
It is probably good to keep it, I just wanted to point out the differences between this and the original PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, in the previous PR Ihave made such mistake. explicit has been introduced in PR #44484

@@ -0,0 +1,16 @@
<bin file="testHGCalMapFileParser.cc">
<flags TEST_RUNNER_ARGS=" Geometry/HGCalMapping/data/ModuleMaps/modulelocator_CEminus_V15p5.txt"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is new wrt #43751

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this test unit has been added and forces cms-data/Geometry-HGCalMapping#1 to be used explicitly

@pfs
Copy link
Contributor Author

pfs commented Apr 16, 2024

No need to duplicate - conflicts solved in #43751.

@pfs pfs closed this Apr 16, 2024
@pfs pfs deleted the dev/hgcalelectronicsmapping branch August 27, 2024 13:51
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