Skip to content

Commit

Permalink
Merge pull request #37112 from cvuosalo/fix-DD4-crash
Browse files Browse the repository at this point in the history
[DD4hep] Add error message for undefined solid
  • Loading branch information
cmsbuild authored Mar 2, 2022
2 parents 73943f5 + fe5d6ca commit 21106cf
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,13 @@ static void convert_boolean(cms::DDParsingContext* context, xml_h element) {
Converter<DDLTransform3D>(context->description, context, &trafo)(element);
ns.context()->unresolvedShapes.emplace(nam,
DDParsingContext::BooleanShape<TYPE>(solidName[0], solidName[1], trafo));
if (solids[0].isValid() == false) {
printout(ERROR, "DD4CMS", "++ Solid not defined yet: %s", solidName[0].c_str());
}
if (solids[1].isValid() == false) {
printout(ERROR, "DD4CMS", "++ Solid not defined yet: %s", solidName[1].c_str());
}
printout(ERROR, "DD4CMS", "++ Re-order XML files to prevent references to undefined solids");
}
if (!boolean.isValid()) {
// Delay processing the shape
Expand Down

0 comments on commit 21106cf

Please sign in to comment.