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
Migration to DD4hep for ME0 db Loader #33098
Migration to DD4hep for ME0 db Loader #33098
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33098/21425
|
A new Pull Request was created by @slomeo (Sergio Lo Meo) for master. It involves the following packages: CondTools/Geometry @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @srimanob, @kpedro88, @ggovi can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
@@ -14,6 +24,9 @@ | |||
|
|||
process.ME0GeometryWriter = cms.EDAnalyzer("ME0RecoIdealDBLoader") | |||
|
|||
#process.ME0GeometryWriter = cms.EDAnalyzer("ME0RecoIdealDBLoader", | |||
# fromDD4Hep = cms.untracked.bool(False)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these lines be uncommented now, and line 25 deleted? The old DD way should work with fromDD4hep
set to false, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cvuosalo The old DD way is the default (i.e fromDD4Hep_ = iC.getUntrackedParameter("fromDD4Hep", false); inside the ME0RecoIdealDBLoader Class) ad I did for GEM. I deleted the comments inside me0geometrywriter.py
@@ -1,6 +1,6 @@ | |||
#!/bin/sh | |||
|
|||
conddb_import -f sqlite_file:myfile.db -c sqlite_file:GeometryFileExtended2026D41.db -t XMLFILE_Geometry_TagXX_Extended2026D41_mc -i XMLFILE_Geometry_TagXX_Extended2026D41_mc | |||
conddb_import -f sqlite_file:myfile.db -c sqlite_file:GeometryFileExtended2026D49.db -t XMLFILE_Geometry_TagXX_Extended2026D49_mc -i XMLFILE_Geometry_TagXX_Extended2026D49_mc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the conddb_import
lines should be replaced with conddb
, as in splitExtended2021Database.sh
. conddb_import
is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-79be25/13348/summary.html Comparison Summary@slava77 comparisons for the following workflows were not done due to missing matrix map:
Summary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33098/21491
|
@cmsbuild please test |
+1 |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-79be25/13431/summary.html Comparison SummarySummary:
|
+Upgrade |
please, can "db" and "orp" take a look and eventually sign this PR? do you see any problems? Thanks in advance |
kind reminder @ggovi |
+1 |
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) |
+1 |
PR description:
This PR (only for ME0) followed what I did for GEM in the PR #32982 .
PR validation:
by checking printouts for both DD & DD4Hep build methods within the ME0GeometryParsFromDD Class in order to compare some DetId parameters (see below):
//DDD
(0) ME0GeometryParsFromDD - DDD
(1) DDD, dimension dx1 109.951, dx2 263.652, dy 435.84, dz 147.5
(2) DDD, tran vector 1059.4 -2.37076e-12 5393.5
(3) DDD, rot matrix 2.44929e-16 -1 2.44929e-16 4.89859e-16 3.67394e-16 -1 1 -3.67394e-16 -1.22465e-16
(4) DDD, Chamber DetID 704643078 Name ME0Box
(1) DDD, dimension dx1 109.951, dx2 263.652, dy 435.84, dz 2.9875
(2) DDD, tran vector 1059.4 -2.32539e-12 5270
(3) DDD, rot matrix 2.44929e-16 -1 2.44929e-16 4.89859e-16 3.67394e-16 -1 1 -3.67394e-16 -1.22465e-16
(5) DDD, Layer DetID 704643334 Name ME0L
(1) DDD, dimension dx1 237.625, dx2 263.652, dy 73.803, dz 2.9875
(2) DDD, tran vector 1421.44 -2.4584e-12 5270
(3) DDD, rot matrix 2.44929e-16 -1 2.44929e-16 4.89859e-16 3.67394e-16 -1 1 -3.67394e-16 -1.22465e-16
(6) DDD, Eta Partion DetID 704651526 Name GHA001 nStrips 384 nPads 192
and so on...
//DD4Hep
(0) ME0GeometryParsFromDD - DD4HEP
(1) DD4HEP, dimension dx1 109.951, dx2 263.652, dy 435.84, dz 147.5
(2) DD4HEP, tran vector 1059.4 0 5393.5
(3) DD4HEP, rot matrix -6.12323e-17 -1 -6.12323e-17 0 -1.22465e-16 -1 1 1.22465e-16 1.83697e-16
(4) DD4HEP, Chamber DetID 704643078 Name ME0Box
(1) DD4HEP, dimension dx1 109.951, dx2 263.652, dy 435.84, dz 2.9875
(2) DD4HEP, tran vector 1059.4 -1.51244e-14 5270
(3) DD4HEP, rot matrix -6.12323e-17 -1 -6.12323e-17 0 -1.22465e-16 -1 1 1.22465e-16 1.83697e-16
(5) DD4HEP, Layer DetID 704643334 Name ME0L
(1) DD4HEP, dimension dx1 237.625, dx2 263.652, dy 73.803, dz 2.9875
(2) DD4HEP, tran vector 1421.44 2.92124e-14 5270
(3) DD4HEP, rot matrix -6.12323e-17 -1 -6.12323e-17 0 -1.22465e-16 -1 1 1.22465e-16 1.83697e-16
(6) DD4HEP, Eta Partion DetID 704651526 Name GHA001 nStrips 384 nPads 192
and so on..
The DD part of the code has not been touched by this PR (except for the printouts). Added "/ dd4hep::mm;", where it was necessary, in the DD4Hep part of the code.
This second validation step will be perfomed when all the problems with Payloads will be fixed.
if this PR is a backport please specify the original PR and why you need to backport that PR:
nothing special