Skip to content

Commit

Permalink
Incorporate #1172 and fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Dec 13, 2023
1 parent 8db7e32 commit bd25633
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DDCore/src/plugins/DetectorChecksum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ const DetectorChecksum::entry_t& DetectorChecksum::handleSegmentation(Segmentati
log << "/>" << newline;
}
log << " </parameters>" << newline;
log << "</segmentatoin>";
log << "</segmentation>";
ise = geo.emplace(seg, make_entry(log)).first;
}
return ise->second;
Expand Down
4 changes: 2 additions & 2 deletions examples/CLICSiD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ endif()
dd4hep_add_test_reg( CLICSiD_check_checksum_EcalBarrel
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${DD4hep_ROOT}/DDDetectors/compact/SiD.xml -plugin DD4hepDetectorChecksum -readout -detector EcalBarrel
REGEX_PASS "Combined hash code 4af999c3b33c5a53 \\(10375 sub-codes\\)"
REGEX_PASS "Combined hash code ec2a9dbb0aeccacc \\(10375 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
# Checksum test of the full detector
dd4hep_add_test_reg( CLICSiD_check_checksum_full
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${DD4hep_ROOT}/DDDetectors/compact/SiD.xml -plugin DD4hepDetectorChecksum -readout
REGEX_PASS "Combined hash code 2aa2f0fe61a8331f \\(3395674 sub-codes\\)"
REGEX_PASS "Combined hash code a2e90886360b3b75 \\(3395674 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
Expand Down
4 changes: 2 additions & 2 deletions examples/ClientTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ dd4hep_add_test_reg( MiniTel_check_checksum_Minitel3
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/MiniTelGenerate.xml
-plugin DD4hepDetectorChecksum -readout -detector Minitel3
REGEX_PASS "Combined hash code 8e54af7d60ff83d0 \\(54 sub-codes\\)"
REGEX_PASS "Combined hash code 22de2a78a15abd64 \\(54 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
Expand All @@ -388,7 +388,7 @@ dd4hep_add_test_reg( MiniTel_check_checksum_full
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/MiniTelGenerate.xml
-plugin DD4hepDetectorChecksum -readout
REGEX_PASS "Combined hash code 7330636481b0401d \\(207 sub-codes\\)"
REGEX_PASS "Combined hash code cbcafd06b9ee34c1 \\(207 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
Expand Down

0 comments on commit bd25633

Please sign in to comment.