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: DD World Built from a DD4hep-based Geometry #26383
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26383/9133
|
A new Pull Request was created by @ianna (Ianna Osborne) for master. It involves the following packages: SimG4Core/DD4hepGeometry The following packages do not have a category, yet: SimG4Core/DD4hepGeometry @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@ianna I fixed the includes but now the code complains about "DDG4/Detector.h" not found in the DDG4 includes: |
The code-checks are being triggered in jenkins. |
Thanks @mrodozov ! Please, let me know when can I test it. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26383/9136
|
please test |
The tests are being triggered in jenkins. |
-1 Tested at: c58a754 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build ClangBuild
I found compilation error when building: >> Package SimG4Core/DD4hepGeometry built >> Entering Package SimG4Core/DD4hepGeometry Entering library rule at SimG4Core/DD4hepGeometry >> Compiling /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc: In constructor 'cms::DDDWorld::DDDWorld(const cms::DDDetector*)': /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc:19:38: error: binding reference of type 'dd4hep::Detector&' to 'const dd4hep::Detector' discards qualifiers dd4hep::sim::Geant4Converter g4Geo(detector); ^~~~~~~~ In file included from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc:4:0: /cvmfs/cms-ib.cern.ch/nweek-02571/slc7_amd64_gcc700/external/dd4hep/v01-10x-dplpph/include/DDG4/Geant4Converter.h:58:7: note: initializing argument 1 of 'dd4hep::sim::Geant4Converter::Geant4Converter(dd4hep::Detector&)' Geant4Converter(Detector& description);
I found compilation error while trying to compile with clang. Command used:
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 1 + eval scram build outputlog '&&' '(/build/cmsbld/jenkins/workspace/ib-any-integration/cms-bot/buildLogAnalyzer.py' --logDir /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/tmp/slc7_amd64_gcc700/cache/log/src '||' 'true)' ++ scram build outputlog Entering library rule at SimG4Core/DD4hepGeometry >> Compiling /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_6_X_2019-04-08-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc:19:32: error: no matching constructor for initialization of 'dd4hep::sim::Geant4Converter' dd4hep::sim::Geant4Converter g4Geo(detector); ^ ~~~~~~~~ /cvmfs/cms-ib.cern.ch/nweek-02571/slc7_amd64_gcc700/external/dd4hep/v01-10x-dplpph/include/DDG4/Geant4Converter.h:32:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const dd4hep::Detector' to 'const dd4hep::sim::Geant4Converter' for 1st argument class Geant4Converter : public detail::GeoHandler, public Geant4Mapping { ^ |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
Comparison job queued. |
assign simulation |
New categories assigned: simulation @civanch,@mdhildreth you have been requested to review this Pull request/Issue and eventually sign? Thanks |
@fabiocos - this is a new package in Simulation with dependency on a dd4hep DDG4 static library. |
Comparison is ready Comparison Summary:
|
@ianna , I am a bit confused. If it is a test, why these are producers in plugin directory instead of test directory? What is the purpose of addition of watchers? What they intend to watch? |
@ianna , if this package depends on geant4core, than geant4core cannot depend on DD4Hep. We have circular dependency. In the current situation, SimG4Core depends on DetectorDescription/Core. I would expect we will have the same thing. For today we have SimG4Core/Geometry/test which is intended for testing of geometry only. Why not reuse the same sub-package or creating a new one? |
This package is intended to test sim dependency on dd4hep. The DDDWorld is a copy of our DDDWorld with an exception that it is in a cms namespace. So is the other class. I was wondering myself about implementations and took liberty to drop some assignments which looked useless to me. If there’s a circular dependency, we have to address it. My question is if the package affects the sim jobs in any way. |
@ianna , current OscarMTProducer (which do real simulation) access would volume via old DD scheme of CMSSW. Your new code seems to provide an access to the world volume. For the test it is fine. It will be good to remove things, which are not connected with geometry in this new producer, this will ensure that we have no circular dependencies (after second look, I am not sure if we really have). |
@civanch - there is no circular dependency. This package is needed to move further, e.g. to make a new OscarMTProducerFromDD4hep. However, it would help if it's integrated in an IB. |
PR description:
PR validation:
@mrodozov - this PR will not compile until the dd4hep-geant4 tool is setup correctly. When it does, it can be merged.
if this PR is a backport please specify the original PR:
no back port is needed