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

Mini-PR: Minor style cleaning #32241

Merged
merged 4 commits into from Nov 24, 2020
Merged

Mini-PR: Minor style cleaning #32241

merged 4 commits into from Nov 24, 2020

Conversation

ghugo83
Copy link
Contributor

@ghugo83 ghugo83 commented Nov 23, 2020

This is a minor PR to improve the style of #32218, where I had not yet taken the time to clean.

  • Add comments and use of std::find_if in SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc.
  • It is not needed anymore to close geometry in DetectorDescription/DDCMS/plugins/dd4hep/DDDefinitions2Objects.cc.

@ianna @civanch @cvuosalo

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32241/19996

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

DetectorDescription/DDCMS
SimG4Core/Geometry

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

cms-bot commands are listed here


edm::LogVerbatim("SimG4CoreApplication")
<< " DDG4SensitiveConverter: Sensitive " << fff << " Class Name " << sClassName << " ROU Name " << sROUName;
edm::LogVerbatim("SimG4CoreApplication")
Copy link
Contributor

Choose a reason for hiding this comment

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

@ghugo83 , it may be too much to add the same printout as in line 67 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@civanch This is the printout of the reflected sensors when they exist, while the printout at line 67 is the printout of the non-reflected sensors.

@civanch
Copy link
Contributor

civanch commented Nov 23, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 23, 2020

The tests are being triggered in jenkins.

Copy link
Contributor

@ianna ianna left a comment

Choose a reason for hiding this comment

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

We ought to test if leaving geometry open is safe. Then ask for an option from DD4hep to keep it open. This will save us time on voxelization that we do not use :-)

@@ -2243,9 +2243,6 @@ static long load_dddefinition(Detector& det, xml_h element) {
if (mfv1.isValid())
wv.placeVolume(mfv1, 1);

// Can not deal with reflections without closed geometry
det.manager().CloseGeometry();
Copy link
Contributor

Choose a reason for hiding this comment

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

@ghugo83 - there is no harm in closing geometry earlier. DD4hep will close it any way. At least we'd know when we forbid any further modifications to geometry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ianna It looks like we need to close the geometry.
When I revert this line, the tests pass.

@ianna
Copy link
Contributor

ianna commented Nov 23, 2020

+1

@cmsbuild
Copy link
Contributor

-1

Tested at: d522cd9

CMSSW: CMSSW_11_2_X_2020-11-23-1100
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e10e61/10954/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests RelVals

  • Unit Tests:

I found errors in the following unit tests:

---> test testDD4hepDDSolid had ERRORS

  • RelVals:

When I ran the RelVals I found an error in the following workflows:
11642.911 step2

runTheMatrix-results/11642.911_ZMM_13+2021_DD4hep+ZMM_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA/step2_ZMM_13+2021_DD4hep+ZMM_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA.log

11624.911 step2
runTheMatrix-results/11624.911_TTbar_13+2021_DD4hep+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA/step2_TTbar_13+2021_DD4hep+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA.log

@cmsbuild
Copy link
Contributor

Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32241/20002

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #32241 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again.

@ghugo83
Copy link
Contributor Author

ghugo83 commented Nov 23, 2020

Tests should pass now

@civanch
Copy link
Contributor

civanch commented Nov 23, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 23, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: 6cbdb30
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e10e61/10959/summary.html
CMSSW: CMSSW_11_2_X_2020-11-23-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-e10e61/10959/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2961011
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2960982
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 36 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 158 log files, 34 edm output root files, 37 DQM output files

@civanch
Copy link
Contributor

civanch commented Nov 23, 2020

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

@qliphy
Copy link
Contributor

qliphy commented Nov 24, 2020

+1

@cmsbuild cmsbuild merged commit 044c077 into cms-sw:master Nov 24, 2020
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

5 participants