From 6e777bb9522e647650c0cb9a823e97d6675b5625 Mon Sep 17 00:00:00 2001 From: Eoin Clerkin <e.clerkin@gsi.de> Date: Fri, 17 Nov 2023 16:04:20 +0100 Subject: [PATCH] Introduce md5sums output for record and checking. Small change to exisitng macro. --- .gitlab-ci.yml | 14 ++++++++++++++ ci_scripts/scan_geometry.C | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e8eec90..c121e951 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -157,3 +157,17 @@ InformCodeOwners: - git fetch upstream - ci_scripts/inform_codeowners.sh upstream +Md5Sums: + stage: finalise + image: alpine + only: + refs: + - merge_requests + tags: + - docker + script: + - find . -iname '*.geo.root' | xargs md5sum + + + + diff --git a/ci_scripts/scan_geometry.C b/ci_scripts/scan_geometry.C index 82072aed..9ff7e91c 100644 --- a/ci_scripts/scan_geometry.C +++ b/ci_scripts/scan_geometry.C @@ -97,6 +97,7 @@ void scan_geometry(const char* fileName = "test.geo.root") //node[j]->GetMotherVolume()->Print(); std::cout << "Shape: "; node[j]->GetVolume()->GetShape()->Print(); + std::cout << node[j]->GetVolume()->GetShape()->GetName() << std::endl; std::cout << "Medium: "; med = node[j]->GetMedium(); med->Print(); @@ -109,9 +110,9 @@ void scan_geometry(const char* fileName = "test.geo.root") fprintf(graph, "%s (%s) -> %s (%s) \n", node[j]->GetMotherVolume()->GetName(), - node[j]->GetMotherVolume()->GetName(), + node[j]->GetMotherVolume()->GetMaterial()->GetName(), node[j]->GetVolume()->GetName(), - node[j]->GetVolume()->GetName() + node[j]->GetVolume()->GetMaterial()->GetName() ); if (num_array[j + 1] > 0) { -- GitLab