From 48ff188ef931f7a24fac8ec82b375f982e1ad9bc Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Mon, 5 Dec 2022 19:48:43 +0100
Subject: [PATCH] Checksum debugging

---
 DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp | 2 +-
 examples/CLICSiD/CMakeLists.txt                      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp b/DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
index 47052262a..1c84e4e20 100644
--- a/DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
+++ b/DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
@@ -52,7 +52,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
       for(xml_coll_t l(x_layer,_U(slice)); l; ++l, ++im)  {
         xml_comp_t x_slice = l;
         double     w = x_slice.thickness();
-        string     slice_name = layer_name + _toString(m+1,"slice%d");
+        string     slice_name = layer_name + _toString(im+1,"slice%d");
         Material   slice_mat  = description.material(x_slice.materialStr());
         Volume     slice_vol (slice_name,Tube(rmin,rmax,w * 0.5),slice_mat);
 
diff --git a/examples/CLICSiD/CMakeLists.txt b/examples/CLICSiD/CMakeLists.txt
index 40c3f191d..6d03f40eb 100644
--- a/examples/CLICSiD/CMakeLists.txt
+++ b/examples/CLICSiD/CMakeLists.txt
@@ -133,7 +133,7 @@ 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 -newline -readout -detector EcalBarrel
-  REGEX_PASS "Combined hash code                      d4dc005e79c047e7  \\(10375 sub-codes\\)"
+  REGEX_PASS "Combined hash code                      91ac921728a25197  \\(10375 sub-codes\\)"
   REGEX_FAIL "Exception;EXCEPTION;ERROR"
 )
 #
@@ -141,7 +141,7 @@ dd4hep_add_test_reg( CLICSiD_check_checksum_EcalBarrel
 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 -newline -readout -dump_detelements -dump_placements -dump_volumes -dump_solids -debug 3
-  REGEX_PASS "Combined hash code                      e81b6ea7e555a6ac  \\(3395674 sub-codes\\)"
+  REGEX_PASS "Combined hash code                      15a55d11308fce12  \\(3395674 sub-codes\\)"
   REGEX_FAIL "Exception;EXCEPTION;ERROR"
 )
 #
-- 
GitLab