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] Ecal Barrel algorithm - use assemblies. Fix all overlaps in EBAR. #33339

Merged
merged 7 commits into from Apr 21, 2021

Conversation

ianna
Copy link
Contributor

@ianna ianna commented Apr 6, 2021

PR description:

Two SubtractionSolids volumes: ESPM and EHAWR made of E_Air are replaced by Assemblies with identical names. One SubtractionSolid EFAW is left as a mother volume intentionally in the hierarchy. This helps to restrict the number of volumes for a ROOT overlap check and complete it within a reasonable time.

Screenshot 2021-04-06 at 13 18 57

The main source of 36 overlaps for both DD and DD4hep-based EcalBarrel geometry was a rounding error. This is solved by adding 1 mm to a Z in EBAR envelope (in blue):

Screenshot 2021-04-06 at 13 54 59

After this change there are no overlaps reported in Ecal barrel in DD4hep-based geometry:

Screenshot 2021-04-06 at 14 43 12

@bsunanda - FYI

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:

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33339/21911

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

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

It involves the following packages:

Geometry/EcalCommonData

@civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks.
@rchatter, @simonepigazzini, @fabiocos, @thomreis, @argiro 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

@ianna
Copy link
Contributor Author

ianna commented Apr 6, 2021

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2021

-1

Failed Tests: ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3936a8/14021/summary.html
COMMIT: 1f27570
CMSSW: CMSSW_11_3_X_2021-04-05-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33339/14021/install.sh to create a dev area with all the needed externals and cmssw changes.

Clang Build

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@@ -2087,7 +2048,7 @@ static long algorithm(dd4hep::Detector& /* description */, cms::DDParsingContext
Volume backPlateLog = Volume(back.plateName, backPlateSolid, ns.material(back.plateMat));

const Position backPlateTra(
0.5 * back.sideHeight + backPlateParms[1], 0, backPlateParms[2] - 0.5 * back.sideLength);
0.5 * back.sideHeight + backPlateParms[1], 0 * dd4hep::mm, backPlateParms[2] - 0.5 * back.sideLength);
Copy link
Contributor

Choose a reason for hiding this comment

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

@ianna , here 0 is more correct then 0*mm

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 - the effect is the same. IMHO, adding units to a number explains better what the number is. There is no downside - the compiler will optimise it anyway. :-)

@cvuosalo
Copy link
Contributor

cvuosalo commented Apr 6, 2021

Clang warnings need to be fixed:

Geometry/EcalCommonData/plugins/dd4hep/DDEcalBarrelNewAlgo.cc
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-05-2300/src/Geometry/EcalCommonData/plugins/dd4hep/DDEcalBarrelNewAlgo.cc:965:19: warning: unused variable 'alltrot' [-Wunused-variable]
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-05-2300/src/Geometry/EcalCommonData/plugins/dd4hep/DDEcalBarrelNewAlgo.cc:950:11: warning: unused variable 'temp2' [-Wunused-variable]
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-05-2300/src/Geometry/EcalCommonData/plugins/dd4hep/DDEcalBarrelNewAlgo.cc:949:11: warning: unused variable 'temp1' [-Wunused-variable]

@ianna
Copy link
Contributor Author

ianna commented Apr 7, 2021

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 7, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3936a8/14076/summary.html
COMMIT: 9d48ceb
CMSSW: CMSSW_11_3_X_2021-04-06-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33339/14076/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-3936a8/11650.911_ZMM_14+2021_DD4hep+ZMM_14TeV_TuneCP5_GenSim+Digi+Reco+HARVEST+ALCA

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 14117 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2640868
  • DQMHistoTests: Total failures: 198006
  • DQMHistoTests: Total nulls: 192
  • DQMHistoTests: Total successes: 2442648
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: found differences in 1 / 36 workflows

@civanch
Copy link
Contributor

civanch commented Apr 8, 2021

Minor changes in ECAL geometry provoke change in simulation history, so no regression in this PR.

@cvuosalo
Copy link
Contributor

cvuosalo commented Apr 8, 2021

This PR still has a problem with the ECal barrel:

%MSG-w EcalGeom: OscarMTProducer:g4SimHits 07-Apr-2021 21:16:39 CEST Run: 1 Event: 1
ECalBarrelNumberingScheme::getUnitID(): Not enough levels found in EcalBaseNumber ( 11) Returning 0
%MSG

There are thousands of these messages in the workflow logs.

@silviodonato
Copy link
Contributor

cc @cms-sw/ecal-dpg-l2

@bsunanda
Copy link
Contributor

@ianna @silviodonato @qliphy This PR needs the new dd4hep version to work. The new dd4hep is indeed needed

@civanch
Copy link
Contributor

civanch commented Apr 20, 2021

@ianna , @bsunanda , @mrodozov , if special IB made recently by Mirco is working why not to make a new version of DD4Hep for 12_0_X? Or DD4Hep update is not yet tagged?

@civanch
Copy link
Contributor

civanch commented Apr 20, 2021

The issue cms-sw/cmsdist#6824 is created.

@ianna
Copy link
Contributor Author

ianna commented Apr 21, 2021

@civanch - I guess this one can go in now. It will need a PR from @bsunanda to update the numbering.

@bsunanda
Copy link
Contributor

@ianna @civanch @silviodonato The PR for numbering is already integrated with the master. So with the new version of dd4hep, this PR can be integrated.

@civanch
Copy link
Contributor

civanch commented Apr 21, 2021

+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)

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit b218083 into cms-sw:master Apr 21, 2021
bsunanda pushed a commit to bsunanda/cmssw that referenced this pull request Apr 21, 2021
cmsbuild added a commit that referenced this pull request Apr 23, 2021
Run3-gee71x Correct EB geometry and numbering scheme (backport #33339 and #33471)
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

6 participants