-
Notifications
You must be signed in to change notification settings - Fork 99
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
DetectorImp::endDocument()
called twice for some geometries?
#1296
Comments
It looks like the parser is getting confused by having all the plugins defined in a different file. As a workaround, if you copy the contents of More precisely, the plugin file is found not to have a geometry and then DD4hep will try to close the document as it follows from this logic: DD4hep/DDCore/src/plugins/Compact2Objects.cpp Lines 1664 to 1682 in fe64884
|
Similar to #1062 ? |
For one single XML file and no steering of opening and closing inside the xml this cannot happen. |
So is the inclusion of plugins the source? And if so will that be fixed? The reply in #1180 led me to believe that it is intended to work :) |
Check duplicate issues.
Goal
Initially I only wanted to understand why the OpenDataDetector has two entries per ddrec surface in the SurfaceManager maps. Turns out that the detector elements are already duplicated in the
DetectorImp::m_detectorTypes
map...As far as I can tell
DetectorImp::mapDetectorTypes()
gets called twice which can only happen ifDetectorImp::endDocument()
is called twice. Naively I would expect that this should not happen?Operating System and Version
Alma Linux 9
compiler
gcc11.4.1
ROOT Version
6.30.06
DD4hep Version
fe64884
Reproducer
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r 2024-07-15 python repro.py
with
repro.py
:results in:
where everything is duplicated...
Additional context
No response
The text was updated successfully, but these errors were encountered: