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

GE0 geometry builder #29624

Merged
merged 10 commits into from May 12, 2020
Merged

GE0 geometry builder #29624

merged 10 commits into from May 12, 2020

Conversation

watson-ij
Copy link
Contributor

@watson-ij watson-ij commented May 4, 2020

PR description:

Updates to build GE0 geometry: that is, ME0 as part of GEM rather than a separate system.
Builds on the GE0 geometry xmls introduced in PR #29463 with the following:

  • changed m0_ to mg_ in muon numbering, this puts the ge0 layer in the "ring", I add 1 and this allows me to check for GE1/1 or GE2/1 (ring base number==0), or GE0 (ring base number =1-6 = GE0)
  • The GEMNumbering is updated to read as GE0 when mg_ring is not 0
  • I only updated the DDD section to be able to build GE0 (DD4HEP will be updated later)
  • I created a geometry based on D54 and placed the files in Geometry/GEMGeometry/test

@jshlee @bsunanda

PR validation:

I tested by writing a testGE0Geometry_cfg.py which loads the new geometry (GE0 as part of GEM geometry) and writing a script to compare the positions of the GE0 with the output of testME0Geometry_cfg.py; all corresponding eta partitions are in the same positions. I also checked that a 2026 upgrade workflow still runs correctly. Running with the new geometry requires changes upstream of geometry and will be made later.

if this PR is a backport please specify the original PR and why you need to backport that PR:

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29624/14993

  • This PR adds an extra 44KB to repository

  • Found files with invalid states:

    • Geometry/CMSCommonData/python/cmsExtendedGeometry2026D59XML_cfi.py:
    • Configuration/Geometry/python/GeometryExtended2026D59Reco_cff.py:
    • Configuration/Geometry/python/GeometryExtended2026D59_cff.py:

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29624/14994

  • This PR adds an extra 44KB to repository

  • Found files with invalid states:

    • Geometry/CMSCommonData/python/cmsExtendedGeometry2026D59XML_cfi.py:
    • Configuration/Geometry/python/GeometryExtended2026D59Reco_cff.py:
    • Configuration/Geometry/python/GeometryExtended2026D59_cff.py:

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

A new Pull Request was created by @watson-ij (Ian J. Watson) for master.

It involves the following packages:

Geometry/GEMGeometry
Geometry/GEMGeometryBuilder
Geometry/MuonCommonData
Geometry/MuonNumbering

@civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @kpedro88 can you please review it and eventually sign? Thanks.
@jshlee, @ptcox, @dildick, @fabiocos, @slomeo this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

superChamber->add(
theGeometry.chamber(GEMDetId(detId.region(), detId.ring(), detId.station(), 2, detId.chamber(), 0)));
foundSuperChamber = true;
int nstation = (st == 0) ? 6 : 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

magic numbers should be named constants

Copy link
Contributor

Choose a reason for hiding this comment

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

@watson-ij Please use these constants. https://github.com/cms-sw/cmssw/blob/master/DataFormats/MuonDetId/interface/GEMDetId.h#L30-L31. I also suggest to rename nstation to nlayers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
int nstation = (st == 0) ? 6 : 2;
int nlayers = (st == 0) ? GEMDetId::maxLayerId0 : GEMDetId::maxLayerId;

So, just to check @kpedro88 something like this would be okay, or I also need to introduce a named constant somewhere for st==0?

Copy link
Contributor

Choose a reason for hiding this comment

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

You could use GEMDetId::minStationId0

@kpedro88
Copy link
Contributor

kpedro88 commented May 4, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5978/console Started: 2020/05/04 17:56

@ianna
Copy link
Contributor

ianna commented May 4, 2020

@slomeo - FYI

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29624/15270

@cmsbuild
Copy link
Contributor

Pull request #29624 was updated. @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @kpedro88 can you please check and sign again.

@kpedro88
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 11, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/6219/console Started: 2020/05/11 15:29

@cmsbuild
Copy link
Contributor

+1
Tested at: 3acf2ff
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b6e6e5/6219/summary.html
CMSSW: CMSSW_11_1_X_2020-05-11-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b6e6e5/6219/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2697527
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2697205
  • DQMHistoTests: Total skipped: 319
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@cvuosalo
Copy link
Contributor

+1

@kpedro88
Copy link
Contributor

+upgrade

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

@silviodonato
Copy link
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.

None yet

10 participants