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 DT db Loader #32781
Migration to DD4hep for DT db Loader #32781
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32781/20944
|
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, @ggovi can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32781/20945
|
Pull request #32781 was updated. @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @ggovi can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b960e1/12616/summary.html Comparison SummarySummary:
|
+1 |
@@ -18,18 +21,25 @@ | |||
#include "DataFormats/MuonDetId/interface/DTChamberId.h" | |||
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h" | |||
#include "DataFormats/Math/interface/GeantUnits.h" | |||
|
|||
#include "DataFormats/GeometryVector/interface/Basic3DVector.h" | |||
#include "CLHEP/Units/GlobalSystemOfUnits.h" |
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.
Delete GlobalSystemOfUnits.h
. It should not be used. I'm not sure what it is needed for in the file, but GeantUnits.h
should provide the same functionaliy.
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 : done
|
||
if (fromDD4Hep_) { | ||
edm::ESTransientHandle<cms::DDCompactView> pDD; | ||
es.get<IdealGeometryRecord>().get(pDD); |
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.
es.get()
is deprecated. If you can, it would be good to change this code to the recommended way:
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideHowToGetDataFromES
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 : yes but, before perform this change, I'd prefer to commit the other modifications, I made for the dd4hep::mm, that you requested then, if the tests and histos comparison will be ok I'll proceed with this point.
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.
Yes, the EventsSetup changes can be made in a later PR if you wish.
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 : I'll try to do it in this PR after the test will be finished
@slomeo The values for DD4hep must match those with DD. When DD is using millimeters, which is most cases, then with DD4hep you have to convert to mm with |
Pull request #32781 was updated. @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @ggovi can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b960e1/12916/summary.html Comparison Summary@slava77 comparisons for the following workflows were not done due to missing matrix map:
Summary:
|
+1 |
@slomeo Yes, it would be good to test the CSC and RPC loaders, too. Thanks. |
kind reminder @ggovi |
@ggovi : do you see any problems in this PR? |
+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 |
1 similar comment
+1 |
PR description:
This PR (only for DT) followed what I did for RPC in the PR #32102 .
PR validation:
Validation using "cmsRun CondTools/Geometry/test/dtgeometrywriter.py" (with DD4hep flag set False or True):
by checking printouts for both DD & DD4Hep build methods within the DTGeometryParsFromDD Class in order to compare some DetId parameters (see below):
//DD (in mm)
(0) DTGeometryParsFromDD - DD4HEP
(1) DD4HEP, Chamber DetId 574914560 1090 1255.5 181
(4) DD4HEP, Position 431.175 39.12 -533.35 // cm
(2) DD4HEP, Super Layer DetID 574922752 1063.2 1255.5 26.75
(4) DD4HEP, Position 419.425 37.52 -533.35 // cm
(4) DD4HEP, Position 417.475 37.52 -533.35 // cm
(3) DD4HEP, Layer DetID 574923776 1029.65 1199 5.75 1174
(4) DD4HEP, Position 418.775 37.52 -533.35 // cm
(3) DD4HEP, Layer DetID 574924800 1050.65 1199 5.75 1174
(4) DD4HEP, Position 420.075 37.52 -533.35 // cm
(3) DD4HEP, Layer DetID 574925824 1029.65 1199 5.75 1174
(4) DD4HEP, Position 421.375 37.52 -533.35 // cm
(3) DD4HEP, Layer DetID 574926848 1008.65 1199 5.75 1174
//DD4Hep (in mm)
(0) DTGeometryParsFromDD - DDD
(1) DDD, Chamber DetID 574914560 1090 1255.5 181
(4) DDD, Position 431.175 39.12 -533.35 // cm
(2) DDD, Super Layer DetID 574922752 1063.2 1255.5 26.75
(4) DDD, Position 419.425 37.52 -533.35 // cm
(4) DDD, Position 417.475 37.52 -533.35 // cm
(3) DDD, Layer DetID 574923776 1029.65 1199 5.75 1174
(4) DDD, Position 418.775 37.52 -533.35 // cm
(3) DDD, Layer DetID 574924800 1050.65 1199 5.75 1174
(4) DDD, Position 420.075 37.52 -533.35 // cm
(3) DDD, Layer DetID 574925824 1029.65 1199 5.75 1174
(4) DDD, Position 421.375 37.52 -533.35 // cm
(3) DDD, Layer DetID 574926848 1008.65 1199 5.75 1174
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.
if this PR is a backport please specify the original PR and why you need to backport that PR:
nothing special