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

[DD4hep] use DD4hep consistently in configurations #36004

Conversation

ianna
Copy link
Contributor

@ianna ianna commented Nov 5, 2021

PR description:

address issue #33373

PR validation:

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:

@ianna
Copy link
Contributor Author

ianna commented Nov 5, 2021

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36004/26439

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2021

A new Pull Request was created by @ianna (Ianna Osborne) for master.

It involves the following packages:

  • Alignment/MuonAlignment (alca)
  • Alignment/OfflineValidation (alca)
  • CondTools/DT (db)
  • CondTools/Geometry (db)
  • Geometry/CMSCommonData (geometry, upgrade)
  • Geometry/CaloEventSetup (geometry)
  • Geometry/DTGeometry (geometry)
  • Geometry/DTGeometryBuilder (geometry)
  • Geometry/EcalAlgo (geometry)
  • Geometry/EcalCommonData (geometry)
  • Geometry/ForwardCommonData (geometry)
  • Geometry/GEMGeometryBuilder (geometry, upgrade)
  • Geometry/HGCalCommonData (geometry, upgrade)
  • Geometry/HcalAlgo (geometry)
  • Geometry/HcalCommonData (geometry)
  • Geometry/HcalTestBeamData (geometry)
  • Geometry/HcalTowerAlgo (geometry)
  • Geometry/MuonNumbering (geometry)
  • Geometry/RPCGeometryBuilder (geometry)
  • Geometry/TrackerGeometryBuilder (geometry)
  • Geometry/VeryForwardGeometryBuilder (geometry)
  • SimG4Core/Application (simulation)
  • SimG4Core/Configuration (simulation)
  • SimG4Core/Geometry (simulation)
  • SimG4Core/GeometryProducer (simulation)
  • SimG4Core/PrintGeomInfo (simulation)

@malbouis, @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @AdrianoDee, @srimanob, @yuanchao, @ggovi, @tvami, @francescobrivio can you please review it and eventually sign? Thanks.
@abbiendi, @CeliaFernandez, @argiro, @jshlee, @bsunanda, @jhgoh, @thomreis, @tlampen, @slomeo, @venturia, @pakhotin, @battibass, @makortel, @JanFSchulte, @watson-ij, @simonepigazzini, @trocino, @cvuosalo, @fabferro, @rovere, @VinInn, @dildick, @tocheng, @mmusich, @ptcox, @mtosi, @fabiocos, @adewit, @rchatter, @jan-kaspar this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7e7a6c/20273/summary.html
COMMIT: 8cea020
CMSSW: CMSSW_12_2_X_2021-11-04-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36004/20273/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS StaticAnalyzer warnings: There are 2 EventSetupRecord::get warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7e7a6c/20273/llvm-analysis/esrget-sa.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 42
  • DQMHistoTests: Total histograms compared: 2901890
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2901868
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 41 files compared)
  • Checked 177 log files, 37 edm output root files, 42 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Nov 5, 2021

+1

@srimanob
Copy link
Contributor

srimanob commented Nov 5, 2021

+Upgrade

Technical PR to resolve the issue of mixing between DD4hep and else (DD4Hep,...). No change is expected.

@civanch
Copy link
Contributor

civanch commented Nov 5, 2021

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2021

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

@perrotta
Copy link
Contributor

perrotta commented Nov 5, 2021

+1

@cmsbuild cmsbuild merged commit 7439de3 into cms-sw:master Nov 5, 2021
@cvuosalo
Copy link
Contributor

cvuosalo commented Nov 5, 2021

The file Geometry/CSCGeometryBuilder/test/python/validateCSCGeometryDD4hep_cfg.py contains the string validateCSCGeometryDD4HEP.root.
SimG4CMS/​HGCalTestBeam/​test/​HGCalTBCERN181Oct1DD4Hep_cfg.py contains the strings TBGenSim181Oct1DD4Hep.root and TBGenSimDD4Hep.root.

Should they be changed for consistency?

@@ -18,7 +18,7 @@ class HcalTB02ParametersFromDD {

private:
static constexpr double k_ScaleFromDDDToG4 = 1.0;
static constexpr double k_ScaleFromDD4HepToG4 = 10.0;
static constexpr double k_ScaleFromDD4hepToG4 = 10.0;
Copy link
Contributor

Choose a reason for hiding this comment

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

@bsunanda Not related to this PR, but this value looks wrong. This file may have been missed in the units conversion. I think it should be:

 static constexpr double k_ScaleFromDD4hepToG4 = (1.0 / dd4hep::mm);

Copy link
Contributor

Choose a reason for hiding this comment

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

OK Carl I shall take care of this

@cvuosalo
Copy link
Contributor

cvuosalo commented Nov 5, 2021

Doing git grep DD4Hep with this PR reveals about 20 files that still contain DD4Hep.

@perrotta
Copy link
Contributor

perrotta commented Nov 6, 2021

Doing git grep DD4Hep with this PR reveals about 20 files that still contain DD4Hep.

Moreover: with lxr I still can find 53 files with "DD4Hep" in the name:
https://cmssdt.cern.ch/lxr/search?%21v=CMSSW_12_2_X_2021-11-05-2300&_filestring=DD4Hep&_string=&_casesensitive=1
and 66 occurrencies from 33 different files with "DD4Hep" in the body:
https://cmssdt.cern.ch/lxr/search?%21v=CMSSW_12_2_X_2021-11-05-2300&_filestring=DD4Hep&_string=&_casesensitive=1

Noteworthy, there are also two files in \test with "DD4HEP" in full capital letters in their names:
https://cmssdt.cern.ch/lxr/search?%21v=CMSSW_12_2_X_2021-11-05-2300&_filestring=DD4HE&_string=&_casesensitive=1
but I think they can stay as such, those names following some reasonable convention

@ianna
Copy link
Contributor Author

ianna commented Nov 6, 2021

Doing git grep DD4Hep with this PR reveals about 20 files that still contain DD4Hep.

@cvuosalo - thanks! I'll have another go at CMSSW now that it is merged. There were way too many hits before. Thanks!

@ianna
Copy link
Contributor Author

ianna commented Nov 6, 2021

@ianna
Copy link
Contributor Author

ianna commented Nov 6, 2021

@cvuosalo and @perrotta - I hope, all your comments are addressed. Please, see #36021

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

8 participants