From 6d50562ed86b2b042ecb90335706b66cb88c0084 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 12:55:28 +0200 Subject: [PATCH 01/42] Updating materials file --- examples/04.MuonScan/setup.gdml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/04.MuonScan/setup.gdml b/examples/04.MuonScan/setup.gdml index d08ecbfd..23676aef 100644 --- a/examples/04.MuonScan/setup.gdml +++ b/examples/04.MuonScan/setup.gdml @@ -3,7 +3,7 @@ - + ]> - &materials; + &gases; &geometry; From fe6612a0f2b256c7119fc0166254564cb87bc27f Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 18:36:20 +0200 Subject: [PATCH 02/42] 04.MuonScan/setup.gdml the entity must be named materials to be properly read by TRestGeant4Metadata --- examples/04.MuonScan/setup.gdml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/04.MuonScan/setup.gdml b/examples/04.MuonScan/setup.gdml index 23676aef..618c51d0 100644 --- a/examples/04.MuonScan/setup.gdml +++ b/examples/04.MuonScan/setup.gdml @@ -3,7 +3,7 @@ - + ]> - &gases; + &materials; &geometry; From 1aa90000732081198794ae04e026a31e74858b26 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 18:36:57 +0200 Subject: [PATCH 03/42] Validate.C validation values updated due to changes in Argon composition --- examples/04.MuonScan/Validate.C | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/examples/04.MuonScan/Validate.C b/examples/04.MuonScan/Validate.C index e6358851..05ffb797 100644 --- a/examples/04.MuonScan/Validate.C +++ b/examples/04.MuonScan/Validate.C @@ -51,6 +51,12 @@ Int_t Validate(const char* filename) { return 7; } + if (geant4Metadata->GetMaterialsReference() != "0.0") { + cout << "Materials version was not defined!" << endl; + cout << "The parent run number from restG4 generated file should be 0" << endl; + return 8; + } + TRestGeant4Event* event = run.GetInputEvent(); double nEvents = run.GetEntries(); @@ -59,16 +65,16 @@ Int_t Validate(const char* filename) { constexpr double averageTotalEnergyRef = 18.074; double averageSensitiveEnergy = 0; - constexpr double averageSensitiveEnergyRef = 8.99048; + constexpr double averageSensitiveEnergyRef = 8.96635; double averageNumberOfTracks = 0; - constexpr double averageNumberOfTracksRef = 432.763; + constexpr double averageNumberOfTracksRef = 393.195; double averageNumberOfHitsVolume0 = 0; - constexpr double averageNumberOfHitsVolume0Ref = 66.317; + constexpr double averageNumberOfHitsVolume0Ref = 66.076; double averageNumberOfHitsVolume1 = 0; - constexpr double averageNumberOfHitsVolume1Ref = 61.555; + constexpr double averageNumberOfHitsVolume1Ref = 59.981; TVector3 averagePosition = {}; const TVector3 averagePositionRef = {-0.59902, 0.0256995, 300.385}; @@ -97,7 +103,7 @@ Int_t Validate(const char* filename) { if (TMath::Abs(averageNumberOfTracks - averageNumberOfTracksRef) / averageNumberOfTracksRef > tolerance) { cout << "The average number of tracks does not match the reference value of " << averageNumberOfTracksRef << endl; - return 8; + return 9; } if (TMath::Abs(averageNumberOfHitsVolume0 - averageNumberOfHitsVolume0Ref) / @@ -105,7 +111,7 @@ Int_t Validate(const char* filename) { tolerance) { cout << "The average number of hits in volume 0 does not match the reference value of " << averageNumberOfHitsVolume0Ref << endl; - return 9; + return 10; } if (TMath::Abs(averageNumberOfHitsVolume1 - averageNumberOfHitsVolume1Ref) / @@ -113,27 +119,27 @@ Int_t Validate(const char* filename) { tolerance) { cout << "The average number of hits in volume 1 does not match the reference value of " << averageNumberOfHitsVolume1Ref << endl; - return 10; + return 11; } if (TMath::Abs(averageSensitiveEnergy - averageSensitiveEnergyRef) / averageSensitiveEnergyRef > tolerance) { cout << "The average sensitive volume energy does not match the reference value of " << averageSensitiveEnergyRef << endl; - return 11; + return 12; } if (TMath::Abs(averageTotalEnergy - averageTotalEnergyRef) / averageTotalEnergyRef > tolerance) { cout << "The average total energy does not match the reference value of " << averageTotalEnergyRef << endl; - return 12; + return 13; } if (TMath::Abs(averagePosition.Mag() - averagePositionRef.Mag()) / averagePositionRef.Mag() > tolerance) { cout << "The average position does not match the reference value of " << "(" << averagePositionRef.x() << ", " << averagePositionRef.y() << ", " << averagePositionRef.z() << ") mm" << endl; - return 13; + return 14; } return 0; From 0cf65c6f794f990446108886444280411c666f1a Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 18:44:45 +0200 Subject: [PATCH 04/42] 04.MuonScan updating geometry name --- examples/04.MuonScan/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/04.MuonScan/setup.gdml b/examples/04.MuonScan/setup.gdml index 618c51d0..2b781588 100644 --- a/examples/04.MuonScan/setup.gdml +++ b/examples/04.MuonScan/setup.gdml @@ -1,5 +1,5 @@ - + From 3b4afb6b97f9565992aec75485e22f91bd8cece0 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 18:55:43 +0200 Subject: [PATCH 05/42] Updating materials file and validation values to fulfill with G4_Xe properties --- examples/01.NLDBD/Validate.C | 10 +++++----- examples/01.NLDBD/geometry/mySetupTemplate.gdml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/01.NLDBD/Validate.C b/examples/01.NLDBD/Validate.C index ec5c0d50..ae09d5c4 100644 --- a/examples/01.NLDBD/Validate.C +++ b/examples/01.NLDBD/Validate.C @@ -57,19 +57,19 @@ Int_t Validate(const char* filename) { double nEvents = run.GetEntries(); double averageTotalEnergy = 0; - const double averageTotalEnergyRef = (!isReferenceGeant4Version) ? 2280.96 : 2221.55; + const double averageTotalEnergyRef = (!isReferenceGeant4Version) ? 2321.41 : 2221.55; double averageSensitiveEnergy = 0; - const double averageSensitiveEnergyRef = (!isReferenceGeant4Version) ? 2280.96 : 2221.55; + const double averageSensitiveEnergyRef = (!isReferenceGeant4Version) ? 2321.41 : 2221.55; double averageNumberOfHits = 0; - const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 5371.17 : 353.2; + const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 5437.37 : 353.2; double averageNumberOfTracks = 0; - const double averageNumberOfTracksRef = (!isReferenceGeant4Version) ? 2300 : 10.83; + const double averageNumberOfTracksRef = (!isReferenceGeant4Version) ? 2309.69 : 10.83; TVector3 averagePosition = {}; - const TVector3 averagePositionRef = (!isReferenceGeant4Version) ? TVector3(-38.8987, 27.5536, 91.3969) + const TVector3 averagePositionRef = (!isReferenceGeant4Version) ? TVector3(26.7015, -3.27037, -113.293) : TVector3(-17.8046, -32.5019, -31.8353); const double tolerance = 0.001; diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 67db22f6..db4d25ad 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,7 +3,7 @@ - + ]> Date: Fri, 30 Sep 2022 19:06:45 +0200 Subject: [PATCH 06/42] 03.Fluorescence updating materials file --- examples/03.Fluorescence/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/03.Fluorescence/geometry/setup.gdml b/examples/03.Fluorescence/geometry/setup.gdml index b7f7d36d..f49e38fd 100644 --- a/examples/03.Fluorescence/geometry/setup.gdml +++ b/examples/03.Fluorescence/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Fri, 30 Sep 2022 19:09:57 +0200 Subject: [PATCH 07/42] 04.MuonScan. Fixing material version validation --- examples/04.MuonScan/Validate.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/04.MuonScan/Validate.C b/examples/04.MuonScan/Validate.C index 05ffb797..e1ca7774 100644 --- a/examples/04.MuonScan/Validate.C +++ b/examples/04.MuonScan/Validate.C @@ -51,9 +51,8 @@ Int_t Validate(const char* filename) { return 7; } - if (geant4Metadata->GetMaterialsReference() != "0.0") { + if (geant4Metadata->GetMaterialsReference() == "0.0") { cout << "Materials version was not defined!" << endl; - cout << "The parent run number from restG4 generated file should be 0" << endl; return 8; } From 687015f05ba0cec8f4adda115230b1c6ef5b052b Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 30 Sep 2022 19:21:39 +0200 Subject: [PATCH 08/42] 06.IonRecoils Updating validation values due to gas composition update --- examples/06.IonRecoils/Validate.C | 2 +- examples/06.IonRecoils/geometry/setup.gdml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/06.IonRecoils/Validate.C b/examples/06.IonRecoils/Validate.C index a9f25b2b..2f56a951 100644 --- a/examples/06.IonRecoils/Validate.C +++ b/examples/06.IonRecoils/Validate.C @@ -16,7 +16,7 @@ Int_t Validate(const char* filename) { const bool isReferenceGeant4Version = geant4Metadata->GetGeant4Version() == "10.4.3"; double averageNumberOfHits = 0; - const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 14413.5 : 11223.0; + const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 11573.5 : 11223.0; const double tolerance = 0.001; for (int i = 0; i < run.GetEntries(); i++) { diff --git a/examples/06.IonRecoils/geometry/setup.gdml b/examples/06.IonRecoils/geometry/setup.gdml index 9cdd9b9c..d769c5bb 100644 --- a/examples/06.IonRecoils/geometry/setup.gdml +++ b/examples/06.IonRecoils/geometry/setup.gdml @@ -1,9 +1,9 @@ - + - + ]> Date: Sat, 1 Oct 2022 08:13:29 +0200 Subject: [PATCH 09/42] 07.FullChainDecay updating validation --- .github/workflows/validation.yml | 2 +- .gitlab-ci.yml | 2 +- examples/07.FullChainDecay/geometry/setup.gdml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 81de0c9f..caf598e4 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -269,7 +269,7 @@ jobs: source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/07.FullChainDecay/ restG4 fullChain.rml -o Run00001_U238_FullChainDecay.root - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 17)' + restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' restG4 singleDecay.rml -o Run00002_U238_SingleChainDecay.root restRoot -b -q Validate.C'("Run00002_U238_SingleChainDecay.root", 1)' export REST_ISOTOPE=Be7 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f412c43..31cdd8c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,7 +124,7 @@ Load REST Libraries: - cd ${CI_PROJECT_DIR}/install/examples/restG4/07.FullChainDecay/ - restG4 fullChain.rml - restG4 singleDecay.rml - - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 17)' + - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' - restRoot -b -q Validate.C'("Run00002_U238_SingleChainDecay.root", 1)' - export REST_ISOTOPE="Be7" - restG4 singleDecay.rml diff --git a/examples/07.FullChainDecay/geometry/setup.gdml b/examples/07.FullChainDecay/geometry/setup.gdml index b7f7d36d..f49e38fd 100644 --- a/examples/07.FullChainDecay/geometry/setup.gdml +++ b/examples/07.FullChainDecay/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Sat, 1 Oct 2022 08:24:07 +0200 Subject: [PATCH 10/42] 01.NLDBD updating validation value --- examples/01.NLDBD/Validate.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/01.NLDBD/Validate.C b/examples/01.NLDBD/Validate.C index ae09d5c4..9bd210c2 100644 --- a/examples/01.NLDBD/Validate.C +++ b/examples/01.NLDBD/Validate.C @@ -63,7 +63,7 @@ Int_t Validate(const char* filename) { const double averageSensitiveEnergyRef = (!isReferenceGeant4Version) ? 2321.41 : 2221.55; double averageNumberOfHits = 0; - const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 5437.37 : 353.2; + const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 5281.31 : 353.2; double averageNumberOfTracks = 0; const double averageNumberOfTracksRef = (!isReferenceGeant4Version) ? 2309.69 : 10.83; From a348d63a487db2869646e64f9ef569ae959267d1 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sat, 1 Oct 2022 08:27:06 +0200 Subject: [PATCH 11/42] 01.NLDBD Updating validation values --- examples/01.NLDBD/Validate.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/01.NLDBD/Validate.C b/examples/01.NLDBD/Validate.C index 9bd210c2..60552043 100644 --- a/examples/01.NLDBD/Validate.C +++ b/examples/01.NLDBD/Validate.C @@ -57,19 +57,19 @@ Int_t Validate(const char* filename) { double nEvents = run.GetEntries(); double averageTotalEnergy = 0; - const double averageTotalEnergyRef = (!isReferenceGeant4Version) ? 2321.41 : 2221.55; + const double averageTotalEnergyRef = (!isReferenceGeant4Version) ? 2237.02 : 2221.55; double averageSensitiveEnergy = 0; - const double averageSensitiveEnergyRef = (!isReferenceGeant4Version) ? 2321.41 : 2221.55; + const double averageSensitiveEnergyRef = (!isReferenceGeant4Version) ? 2237.02 : 2221.55; double averageNumberOfHits = 0; const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 5281.31 : 353.2; double averageNumberOfTracks = 0; - const double averageNumberOfTracksRef = (!isReferenceGeant4Version) ? 2309.69 : 10.83; + const double averageNumberOfTracksRef = (!isReferenceGeant4Version) ? 2277.62 : 10.83; TVector3 averagePosition = {}; - const TVector3 averagePositionRef = (!isReferenceGeant4Version) ? TVector3(26.7015, -3.27037, -113.293) + const TVector3 averagePositionRef = (!isReferenceGeant4Version) ? TVector3(-17.4834, -15.4111, -31.5935) : TVector3(-17.8046, -32.5019, -31.8353); const double tolerance = 0.001; From 1fbf0f882b0103bb28f3e3954c2b0b74fa51dde1 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sat, 1 Oct 2022 20:15:32 +0200 Subject: [PATCH 12/42] 04.MuonScan validating values --- examples/04.MuonScan/Validate.C | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/04.MuonScan/Validate.C b/examples/04.MuonScan/Validate.C index e1ca7774..c253f8f7 100644 --- a/examples/04.MuonScan/Validate.C +++ b/examples/04.MuonScan/Validate.C @@ -61,22 +61,22 @@ Int_t Validate(const char* filename) { double nEvents = run.GetEntries(); double averageTotalEnergy = 0; - constexpr double averageTotalEnergyRef = 18.074; + constexpr double averageTotalEnergyRef = 18.3461; double averageSensitiveEnergy = 0; - constexpr double averageSensitiveEnergyRef = 8.96635; + constexpr double averageSensitiveEnergyRef = 8.59475; double averageNumberOfTracks = 0; - constexpr double averageNumberOfTracksRef = 393.195; + constexpr double averageNumberOfTracksRef = 394.381; double averageNumberOfHitsVolume0 = 0; - constexpr double averageNumberOfHitsVolume0Ref = 66.076; + constexpr double averageNumberOfHitsVolume0Ref = 69.092; double averageNumberOfHitsVolume1 = 0; - constexpr double averageNumberOfHitsVolume1Ref = 59.981; + constexpr double averageNumberOfHitsVolume1Ref = 58.31; TVector3 averagePosition = {}; - const TVector3 averagePositionRef = {-0.59902, 0.0256995, 300.385}; + const TVector3 averagePositionRef = {0.338143, -0.291832, 300.517}; constexpr double tolerance = 0.001; From 1f934b7204e6dae9d22cc6fac5dd8a69455a62ee Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sat, 1 Oct 2022 20:35:57 +0200 Subject: [PATCH 13/42] 06.IonRecoils fixing validation value --- examples/06.IonRecoils/Validate.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/06.IonRecoils/Validate.C b/examples/06.IonRecoils/Validate.C index 2f56a951..fb92fac6 100644 --- a/examples/06.IonRecoils/Validate.C +++ b/examples/06.IonRecoils/Validate.C @@ -16,7 +16,7 @@ Int_t Validate(const char* filename) { const bool isReferenceGeant4Version = geant4Metadata->GetGeant4Version() == "10.4.3"; double averageNumberOfHits = 0; - const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 11573.5 : 11223.0; + const double averageNumberOfHitsRef = (!isReferenceGeant4Version) ? 14417.5 : 11223.0; const double tolerance = 0.001; for (int i = 0; i < run.GetEntries(); i++) { From 15e98900a9b55890d32daeb7f35180ad849724df Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sat, 1 Oct 2022 20:37:41 +0200 Subject: [PATCH 14/42] 08.Alphas. Changing material to gases.rml --- examples/08.Alphas/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/08.Alphas/geometry/setup.gdml b/examples/08.Alphas/geometry/setup.gdml index 4d2ea411..13bc8910 100644 --- a/examples/08.Alphas/geometry/setup.gdml +++ b/examples/08.Alphas/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Sun, 2 Oct 2022 10:15:51 +0200 Subject: [PATCH 15/42] 08.Alphas. Fixing validation values due to change of materials file --- examples/08.Alphas/Validate.C | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/examples/08.Alphas/Validate.C b/examples/08.Alphas/Validate.C index cdddbb15..8001fc0d 100644 --- a/examples/08.Alphas/Validate.C +++ b/examples/08.Alphas/Validate.C @@ -24,50 +24,51 @@ Int_t Validate() { constexpr Double_t thetaAverageRef = 1.5767; Double_t phiAverage = analysisTree->GetObservableAverage("g4Ana_phiPrimary"); - constexpr Double_t phiAverageRef = 0.069711; + constexpr Double_t phiAverageRef = 0.0719113; cout << "entry 100, theta: " << thetaSample << ", phi: " << phiSample << endl; cout << "average theta: " << thetaAverage << ", average phi: " << phiAverage << endl; - if (h1->Integral() != 1989) { - cout << "Wrong number of alphas produced at 1MeV_5um!" << endl; + if (h1->Integral() != 1984) { + cout << "Wrong number of alphas produced at (h1) 1MeV_5um!" << endl; cout << "Histogram contains : " << h1->Integral() << endl; return 10; } - if (h2->Integral() != 7422) { - cout << "Wrong number of alphas produced at 5MeV_5um!" << endl; + if (h2->Integral() != 7432) { + cout << "Wrong number of alphas produced at (h2) 5MeV_5um!" << endl; cout << "Histogram contains : " << h2->Integral() << endl; return 20; } - if (h3->Integral() != 9417) { - cout << "Wrong number of alphas produced at 5MeV_1um!" << endl; + if (h3->Integral() != 9430) { + cout << "Wrong number of alphas produced at (h3) 5MeV_1um!" << endl; cout << "Histogram contains : " << h3->Integral() << endl; return 30; } if (TMath::Abs(thetaSample - thetaSampleRef) / thetaSampleRef >= 0.01) { cout << "Wrong theta angle value for entry 100!" << endl; - cout << "Theta value is : " << thetaSample << endl; + cout << "Theta value is : " << thetaSample << " while it should be : " << thetaSampleRef << endl; return 60; } if (TMath::Abs(phiSample - phiSampleRef) / phiSampleRef >= 0.01) { cout << "Wrong phi angle value for entry 100!" << endl; - cout << "Phi value is : " << phiSample << endl; + cout << "Phi value is : " << phiSample << " while it should be : " << phiSampleRef << endl; return 60; } if (TMath::Abs(thetaAverage - thetaAverageRef) / thetaAverageRef >= 0.01) { cout << "Wrong theta angle average!" << endl; - cout << "Theta angle average : " << thetaAverage << " while it should be : " << 1.589 << endl; + cout << "Theta angle average : " << thetaAverage << " while it should be : " << thetaAverageRef + << endl; return 80; } if (TMath::Abs(phiAverage - phiAverageRef) / phiAverageRef >= 0.01) { cout << "Wrong phi angle average!" << endl; - cout << "Phi angle average : " << phiAverage << " while it should be : " << 0.027 << endl; + cout << "Phi angle average : " << phiAverage << " while it should be : " << phiAverageRef << endl; return 90; } From 6852ce007370d66737c054e685a2093735fc350a Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sun, 2 Oct 2022 18:13:18 +0200 Subject: [PATCH 16/42] 12.Generators updating materials file --- examples/12.Generators/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/12.Generators/geometry/setup.gdml b/examples/12.Generators/geometry/setup.gdml index 1285174c..0cc9d20e 100644 --- a/examples/12.Generators/geometry/setup.gdml +++ b/examples/12.Generators/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Sun, 2 Oct 2022 18:14:05 +0200 Subject: [PATCH 17/42] test/examples.cxx Updating full chain validation --- test/src/examples.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/examples.cxx b/test/src/examples.cxx index 3f39b31b..67c98772 100644 --- a/test/src/examples.cxx +++ b/test/src/examples.cxx @@ -276,7 +276,7 @@ TEST(restG4, Example_07_Decay_FullChain) { gROOT->ProcessLine(TString::Format(".L %s", macro.Data())); // Load macro int error = 0; const int result = - gROOT->ProcessLine(TString::Format("Validate(\"%s\", %d)", options.outputFile.c_str(), 17), &error); + gROOT->ProcessLine(TString::Format("Validate(\"%s\", %d)", options.outputFile.c_str(), 15), &error); EXPECT_EQ(error, 0); EXPECT_EQ(result, 0); From 73e7454b9bd020d2d5cab5f05edd9aac602118a0 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Sun, 2 Oct 2022 18:26:32 +0200 Subject: [PATCH 18/42] 09.Pb210_Shield. Updating materials file --- examples/09.Pb210_Shield/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/09.Pb210_Shield/geometry/setup.gdml b/examples/09.Pb210_Shield/geometry/setup.gdml index 5f8d4782..9461105e 100644 --- a/examples/09.Pb210_Shield/geometry/setup.gdml +++ b/examples/09.Pb210_Shield/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Sun, 2 Oct 2022 18:32:00 +0200 Subject: [PATCH 19/42] 11.Xrays Updating materials file --- examples/11.Xrays/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/11.Xrays/geometry/setup.gdml b/examples/11.Xrays/geometry/setup.gdml index 1285174c..0cc9d20e 100644 --- a/examples/11.Xrays/geometry/setup.gdml +++ b/examples/11.Xrays/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Mon, 3 Oct 2022 09:25:17 +0200 Subject: [PATCH 20/42] 01.NLDBD Adding both gases.xml and materials.xml --- examples/01.NLDBD/geometry/mySetupTemplate.gdml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index db4d25ad..9a422cca 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,7 +3,8 @@ - + + ]> &materials; + &gases; &geometry; From d66252b458252601a3acab2f0ec8b8b587e57772 Mon Sep 17 00:00:00 2001 From: Luis Obis Date: Mon, 3 Oct 2022 10:05:37 +0200 Subject: [PATCH 21/42] using new url for materials --- examples/01.NLDBD/geometry/mySetupTemplate.gdml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 9a422cca..e461dc39 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,8 +3,7 @@ - - + ]> &materials; - &gases; - &geometry; - From acf7e44945eee354b3a0055bf302d2faa0f35f40 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Mon, 3 Oct 2022 22:03:49 +0200 Subject: [PATCH 22/42] Updating material geometry to rest.xml --- examples/01.NLDBD/geometry/mySetupTemplate.gdml | 4 +--- examples/03.Fluorescence/geometry/setup.gdml | 2 +- examples/04.MuonScan/setup.gdml | 2 +- examples/06.IonRecoils/geometry/setup.gdml | 2 +- examples/07.FullChainDecay/geometry/setup.gdml | 2 +- examples/08.Alphas/geometry/setup.gdml | 2 +- examples/09.Pb210_Shield/geometry/setup.gdml | 2 +- examples/11.Xrays/geometry/setup.gdml | 2 +- 8 files changed, 8 insertions(+), 10 deletions(-) diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 9a422cca..8d9636dc 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,8 +3,7 @@ - - + ]> &materials; - &gases; &geometry; diff --git a/examples/03.Fluorescence/geometry/setup.gdml b/examples/03.Fluorescence/geometry/setup.gdml index f49e38fd..1cf13bc5 100644 --- a/examples/03.Fluorescence/geometry/setup.gdml +++ b/examples/03.Fluorescence/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> - + ]> - + ]> - + ]> - + ]> - + ]> - + ]> Date: Tue, 4 Oct 2022 09:51:11 +0200 Subject: [PATCH 23/42] 01.NLDBD trying to fix reference --- .github/workflows/validation.yml | 3 +++ examples/01.NLDBD/geometry/mySetupTemplate.gdml | 2 +- examples/12.Generators/geometry/setup.gdml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index caf598e4..0750b31b 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -158,6 +158,9 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/ + cd geometry + wget https://rest-for-physics.github.io/materials/rest.xml + cd .. restG4 NLDBD.rml -o Run00001_NLDBD_Test.root restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 66895a6a..7f94c54d 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,7 +3,7 @@ - + ]> - + ]> Date: Tue, 4 Oct 2022 09:59:25 +0200 Subject: [PATCH 24/42] 01.NLDBD adding an older materials file for reference validation --- examples/01.NLDBD/geometry/rest.xml | 421 ++++++++++++++++++++++++++++ 1 file changed, 421 insertions(+) create mode 100644 examples/01.NLDBD/geometry/rest.xml diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml new file mode 100644 index 00000000..07b18ad1 --- /dev/null +++ b/examples/01.NLDBD/geometry/rest.xml @@ -0,0 +1,421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 6825827c770993b9bbecdd5d4dfe73cf0bcf65e9 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 10:20:50 +0200 Subject: [PATCH 25/42] 01.NLDBD/geometry/rest.xml removing Lithium from local materials file --- examples/01.NLDBD/geometry/rest.xml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml index 07b18ad1..cbe95329 100644 --- a/examples/01.NLDBD/geometry/rest.xml +++ b/examples/01.NLDBD/geometry/rest.xml @@ -219,28 +219,6 @@ - - - - - - - - - - - - - - - - - - - - - - From a71ea8aa04ff63fd148d38b9d9fabf3dbecb678c Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 10:27:33 +0200 Subject: [PATCH 26/42] .github/validation.yml 01.NLDBD overwritting rest.xml --- .github/workflows/validation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 0750b31b..3885934f 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -159,6 +159,7 @@ jobs: source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/ cd geometry + rm rest.xml wget https://rest-for-physics.github.io/materials/rest.xml cd .. restG4 NLDBD.rml -o Run00001_NLDBD_Test.root From c0a57449a5025bd610a6fc0df133ecdf1de46422 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 10:47:31 +0200 Subject: [PATCH 27/42] Trying to fix reference examples --- .github/workflows/validation.yml | 8 + examples/01.NLDBD/geometry/rest.xml | 399 ------------------ .../04.MuonScan/CosmicMuonsFromCircle.rml | 24 +- examples/04.MuonScan/CosmicMuonsFromWall.rml | 24 +- examples/04.MuonScan/Muon.rml | 2 +- .../04.MuonScan/{ => geometry}/geometry.gdml | 0 examples/04.MuonScan/geometry/rest.xml | 0 .../04.MuonScan/{ => geometry}/setup.gdml | 2 +- examples/07.FullChainDecay/geometry/rest.xml | 0 .../07.FullChainDecay/geometry/setup.gdml | 2 +- 10 files changed, 17 insertions(+), 444 deletions(-) rename examples/04.MuonScan/{ => geometry}/geometry.gdml (100%) create mode 100644 examples/04.MuonScan/geometry/rest.xml rename examples/04.MuonScan/{ => geometry}/setup.gdml (93%) create mode 100644 examples/07.FullChainDecay/geometry/rest.xml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 3885934f..de59bd7a 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -205,6 +205,10 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/04.MuonScan/ + cd geometry + rm rest.xml + wget https://rest-for-physics.github.io/materials/rest.xml + cd .. restG4 Muon.rml -o muons_from_point.root restRoot -b -q Validate.C'("muons_from_point.root")' restG4 CosmicMuonsFromWall.rml -o muons_from_wall.root @@ -272,6 +276,10 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/07.FullChainDecay/ + cd geometry + rm rest.xml + wget https://rest-for-physics.github.io/materials/rest.xml + cd .. restG4 fullChain.rml -o Run00001_U238_FullChainDecay.root restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' restG4 singleDecay.rml -o Run00002_U238_SingleChainDecay.root diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml index cbe95329..e69de29b 100644 --- a/examples/01.NLDBD/geometry/rest.xml +++ b/examples/01.NLDBD/geometry/rest.xml @@ -1,399 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - -

- - - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/04.MuonScan/CosmicMuonsFromCircle.rml b/examples/04.MuonScan/CosmicMuonsFromCircle.rml index b17919bf..bb620401 100644 --- a/examples/04.MuonScan/CosmicMuonsFromCircle.rml +++ b/examples/04.MuonScan/CosmicMuonsFromCircle.rml @@ -1,7 +1,5 @@ - - + - @@ -12,51 +10,38 @@ - - - + - - - - + - - - - - - @@ -64,13 +49,10 @@ - - - diff --git a/examples/04.MuonScan/CosmicMuonsFromWall.rml b/examples/04.MuonScan/CosmicMuonsFromWall.rml index dd178577..027e19a0 100644 --- a/examples/04.MuonScan/CosmicMuonsFromWall.rml +++ b/examples/04.MuonScan/CosmicMuonsFromWall.rml @@ -1,10 +1,7 @@ - - + - - @@ -15,49 +12,37 @@ First concept author G. Luzón (16-11-2020) --> - - - + - - - - + - - - - - - @@ -65,13 +50,10 @@ First concept author G. Luzón (16-11-2020) --> - - - diff --git a/examples/04.MuonScan/Muon.rml b/examples/04.MuonScan/Muon.rml index 70fa44a1..9528488a 100644 --- a/examples/04.MuonScan/Muon.rml +++ b/examples/04.MuonScan/Muon.rml @@ -11,7 +11,7 @@ - + diff --git a/examples/04.MuonScan/geometry.gdml b/examples/04.MuonScan/geometry/geometry.gdml similarity index 100% rename from examples/04.MuonScan/geometry.gdml rename to examples/04.MuonScan/geometry/geometry.gdml diff --git a/examples/04.MuonScan/geometry/rest.xml b/examples/04.MuonScan/geometry/rest.xml new file mode 100644 index 00000000..e69de29b diff --git a/examples/04.MuonScan/setup.gdml b/examples/04.MuonScan/geometry/setup.gdml similarity index 93% rename from examples/04.MuonScan/setup.gdml rename to examples/04.MuonScan/geometry/setup.gdml index 005a7d7c..ac094a12 100644 --- a/examples/04.MuonScan/setup.gdml +++ b/examples/04.MuonScan/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> - + ]> Date: Tue, 4 Oct 2022 10:57:28 +0200 Subject: [PATCH 28/42] Moving local rest.xml from 06 example to 04. --- .github/workflows/validation.yml | 8 ++++---- examples/04.MuonScan/geometry/setup.gdml | 2 +- examples/06.IonRecoils/geometry/rest.xml | 0 examples/06.IonRecoils/geometry/setup.gdml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 examples/06.IonRecoils/geometry/rest.xml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index de59bd7a..e76fa79e 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -205,10 +205,6 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/04.MuonScan/ - cd geometry - rm rest.xml - wget https://rest-for-physics.github.io/materials/rest.xml - cd .. restG4 Muon.rml -o muons_from_point.root restRoot -b -q Validate.C'("muons_from_point.root")' restG4 CosmicMuonsFromWall.rml -o muons_from_wall.root @@ -255,6 +251,10 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/06.IonRecoils/ + cd geometry + rm rest.xml + wget https://rest-for-physics.github.io/materials/rest.xml + cd .. restG4 recoils.rml -o Run00001_F20_Recoils.root restRoot -b -q Validate.C'("Run00001_F20_Recoils.root")' diff --git a/examples/04.MuonScan/geometry/setup.gdml b/examples/04.MuonScan/geometry/setup.gdml index ac094a12..005a7d7c 100644 --- a/examples/04.MuonScan/geometry/setup.gdml +++ b/examples/04.MuonScan/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> - + ]> Date: Tue, 4 Oct 2022 11:02:40 +0200 Subject: [PATCH 29/42] Removing empty rest.xml --- examples/04.MuonScan/geometry/rest.xml | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/04.MuonScan/geometry/rest.xml diff --git a/examples/04.MuonScan/geometry/rest.xml b/examples/04.MuonScan/geometry/rest.xml deleted file mode 100644 index e69de29b..00000000 From 2091f4e63454de6b1bb8f4fb60f8772561342ab1 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 11:19:45 +0200 Subject: [PATCH 30/42] Updating corrupt local materials file --- examples/01.NLDBD/geometry/rest.xml | 421 +++++++++++++++++++ examples/06.IonRecoils/geometry/rest.xml | 421 +++++++++++++++++++ examples/07.FullChainDecay/geometry/rest.xml | 421 +++++++++++++++++++ 3 files changed, 1263 insertions(+) diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml index e69de29b..07b18ad1 100644 --- a/examples/01.NLDBD/geometry/rest.xml +++ b/examples/01.NLDBD/geometry/rest.xml @@ -0,0 +1,421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/06.IonRecoils/geometry/rest.xml b/examples/06.IonRecoils/geometry/rest.xml index e69de29b..07b18ad1 100644 --- a/examples/06.IonRecoils/geometry/rest.xml +++ b/examples/06.IonRecoils/geometry/rest.xml @@ -0,0 +1,421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/07.FullChainDecay/geometry/rest.xml b/examples/07.FullChainDecay/geometry/rest.xml index e69de29b..07b18ad1 100644 --- a/examples/07.FullChainDecay/geometry/rest.xml +++ b/examples/07.FullChainDecay/geometry/rest.xml @@ -0,0 +1,421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 52d6157e5cf39dd23c9bca67cd4b41ca408c855b Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 11:43:04 +0200 Subject: [PATCH 31/42] Removing malformed Lithium from local materials file --- examples/01.NLDBD/geometry/rest.xml | 21 ------------------- examples/06.IonRecoils/geometry/rest.xml | 21 ------------------- examples/07.FullChainDecay/geometry/rest.xml | 22 -------------------- 3 files changed, 64 deletions(-) diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml index 07b18ad1..40a41977 100644 --- a/examples/01.NLDBD/geometry/rest.xml +++ b/examples/01.NLDBD/geometry/rest.xml @@ -219,27 +219,6 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/06.IonRecoils/geometry/rest.xml b/examples/06.IonRecoils/geometry/rest.xml index 07b18ad1..40a41977 100644 --- a/examples/06.IonRecoils/geometry/rest.xml +++ b/examples/06.IonRecoils/geometry/rest.xml @@ -219,27 +219,6 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/07.FullChainDecay/geometry/rest.xml b/examples/07.FullChainDecay/geometry/rest.xml index 07b18ad1..cbe95329 100644 --- a/examples/07.FullChainDecay/geometry/rest.xml +++ b/examples/07.FullChainDecay/geometry/rest.xml @@ -219,28 +219,6 @@ - - - - - - - - - - - - - - - - - - - - - - From b3951758be67b1128012cf340823e6ccb313957b Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 12:23:35 +0200 Subject: [PATCH 32/42] Fixing ctests 01.NLDBD example --- examples/01.NLDBD/NLDBD2.rml | 80 +++++++++++++++++++ examples/01.NLDBD/README.md | 2 + .../01.NLDBD/geometry/mySetupTemplate2.gdml | 50 ++++++++++++ test/src/examples.cxx | 4 +- 4 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 examples/01.NLDBD/NLDBD2.rml create mode 100644 examples/01.NLDBD/geometry/mySetupTemplate2.gdml diff --git a/examples/01.NLDBD/NLDBD2.rml b/examples/01.NLDBD/NLDBD2.rml new file mode 100644 index 00000000..abaedc3a --- /dev/null +++ b/examples/01.NLDBD/NLDBD2.rml @@ -0,0 +1,80 @@ + + + + + + + + + + + // Value "auto" can add simulation run into database ??? + + + // If no runTag is given in a restG4 simulation. The title of TRestGeant4Metadata will be used + + + // The output filename can be built using any member from TRestRun, fRunNumber, fRunTag, ..., etc. + + + + + + + + + + + ///three types of source definition supported: + + ///1. generator file + + + ///2. decay0 package + + + ///3. geant4 internal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/01.NLDBD/README.md b/examples/01.NLDBD/README.md index 876d0b02..648dc919 100644 --- a/examples/01.NLDBD/README.md +++ b/examples/01.NLDBD/README.md @@ -5,3 +5,5 @@ Date : 19/July/2019 **Event generator** : The event generator will launch neutrinoless double beta decays from the gas volume. **Command** : restG4 NLDBD.rml + +**Remark** : The second version of NLDBD.rml is used in order to force loading the remote materials file. Inside the GitHub workflow the remote materials file is downloaded and overwritten (except for the reference pipeline that still needs the old materials file). diff --git a/examples/01.NLDBD/geometry/mySetupTemplate2.gdml b/examples/01.NLDBD/geometry/mySetupTemplate2.gdml new file mode 100644 index 00000000..1fca8637 --- /dev/null +++ b/examples/01.NLDBD/geometry/mySetupTemplate2.gdml @@ -0,0 +1,50 @@ + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + &materials; + + &geometry; + + + + + + diff --git a/test/src/examples.cxx b/test/src/examples.cxx index 67c98772..2aa2077e 100644 --- a/test/src/examples.cxx +++ b/test/src/examples.cxx @@ -28,7 +28,7 @@ TEST(restG4, Example_01_NLDBD) { fs::current_path(thisExamplePath); CommandLineOptions::Options options; - options.rmlFile = "NLDBD.rml"; + options.rmlFile = "NLDBD2.rml"; options.outputFile = thisExamplePath / "NLDBD_simulation.root"; // TODO: fix not working with local path { // Run simulation @@ -276,7 +276,7 @@ TEST(restG4, Example_07_Decay_FullChain) { gROOT->ProcessLine(TString::Format(".L %s", macro.Data())); // Load macro int error = 0; const int result = - gROOT->ProcessLine(TString::Format("Validate(\"%s\", %d)", options.outputFile.c_str(), 15), &error); + gROOT->ProcessLine(TString::Format("Validate(\"%s\", %d)", options.outputFile.c_str(), 17), &error); EXPECT_EQ(error, 0); EXPECT_EQ(result, 0); From e08abc8d510705ca5c49831ab063132ae3a016db Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 14:07:41 +0200 Subject: [PATCH 33/42] Fixing Gitlab pipeline --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 31cdd8c0..60ae2a57 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -74,6 +74,10 @@ Load REST Libraries: script: - source ${CI_PROJECT_DIR}/install/thisREST.sh - cd ${CI_PROJECT_DIR}/install/examples/restG4/01.NLDBD/ + - cd geometry + - rm rest.xml + - wget https://rest-for-physics.github.io/materials/rest.xml + - cd .. - restG4 NLDBD.rml - geant4-config --version - restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' @@ -122,6 +126,10 @@ Load REST Libraries: script: - source ${CI_PROJECT_DIR}/install/thisREST.sh - cd ${CI_PROJECT_DIR}/install/examples/restG4/07.FullChainDecay/ + - cd geometry + - rm rest.xml + - wget https://rest-for-physics.github.io/materials/rest.xml + - cd .. - restG4 fullChain.rml - restG4 singleDecay.rml - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' From 21b6f8fd9146b77a8f2e562e13663c00918004ce Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 14:27:46 +0200 Subject: [PATCH 34/42] Updating 01.NLDBD/README.md --- examples/01.NLDBD/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/01.NLDBD/README.md b/examples/01.NLDBD/README.md index 648dc919..77226345 100644 --- a/examples/01.NLDBD/README.md +++ b/examples/01.NLDBD/README.md @@ -6,4 +6,4 @@ Date : 19/July/2019 **Command** : restG4 NLDBD.rml -**Remark** : The second version of NLDBD.rml is used in order to force loading the remote materials file. Inside the GitHub workflow the remote materials file is downloaded and overwritten (except for the reference pipeline that still needs the old materials file). +**Remark** : The second version of `NLDBD.rml` (NLDBD2.rml) is used in order to force loading the remote materials file. `NLDBD2.rml` will be used by the `ctests`. Inside the GitHub workflow the remote materials file is downloaded and the local version is overwritten (thus that pipeline simply uses `NLDBD.rml`). The reference pipeline still needs the old materials file, which now is available in the example geometry directory (named `rest.xml`). From 42a8a36a3a13fce80086ed67d8960432fbab54ea Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 16:17:56 +0200 Subject: [PATCH 35/42] 08.alphas. Adding old material files inside alphas example --- .github/workflows/validation.yml | 4 ++++ examples/08.Alphas/geometry/setup.gdml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index e76fa79e..3d40976f 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -306,6 +306,10 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/08.Alphas/ + cd geometry + rm rest.xml + wget https://rest-for-physics.github.io/materials/rest.xml + cd .. mkdir data export REST_ENERGY=5 export REST_FOIL=1 diff --git a/examples/08.Alphas/geometry/setup.gdml b/examples/08.Alphas/geometry/setup.gdml index ba869571..b8c083d4 100644 --- a/examples/08.Alphas/geometry/setup.gdml +++ b/examples/08.Alphas/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Tue, 4 Oct 2022 16:18:36 +0200 Subject: [PATCH 36/42] Uploading rest.xml into 08.aplhas --- examples/08.Alphas/geometry/rest.xml | 400 +++++++++++++++++++++++++++ 1 file changed, 400 insertions(+) create mode 100644 examples/08.Alphas/geometry/rest.xml diff --git a/examples/08.Alphas/geometry/rest.xml b/examples/08.Alphas/geometry/rest.xml new file mode 100644 index 00000000..40a41977 --- /dev/null +++ b/examples/08.Alphas/geometry/rest.xml @@ -0,0 +1,400 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 599a803cc9c1b50ceaa92680a26e5102924ed390 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 4 Oct 2022 16:28:47 +0200 Subject: [PATCH 37/42] 08.Alphas using sed strategy to update materials file --- .github/workflows/validation.yml | 4 ---- examples/08.Alphas/geometry/setup.gdml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 3d40976f..e76fa79e 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -306,10 +306,6 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/08.Alphas/ - cd geometry - rm rest.xml - wget https://rest-for-physics.github.io/materials/rest.xml - cd .. mkdir data export REST_ENERGY=5 export REST_FOIL=1 diff --git a/examples/08.Alphas/geometry/setup.gdml b/examples/08.Alphas/geometry/setup.gdml index b8c083d4..80a6fa28 100644 --- a/examples/08.Alphas/geometry/setup.gdml +++ b/examples/08.Alphas/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Tue, 4 Oct 2022 16:40:02 +0200 Subject: [PATCH 38/42] 08.alphas/setup.gdml now uses official updated materials file --- examples/08.Alphas/geometry/setup.gdml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/08.Alphas/geometry/setup.gdml b/examples/08.Alphas/geometry/setup.gdml index 80a6fa28..ba869571 100644 --- a/examples/08.Alphas/geometry/setup.gdml +++ b/examples/08.Alphas/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> Date: Tue, 4 Oct 2022 16:48:26 +0200 Subject: [PATCH 39/42] Updating 01.NLDBD materials file --- .github/workflows/validation.yml | 5 +---- examples/01.NLDBD/geometry/mySetupTemplate.gdml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index e76fa79e..3d77a5e3 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -158,10 +158,6 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/ - cd geometry - rm rest.xml - wget https://rest-for-physics.github.io/materials/rest.xml - cd .. restG4 NLDBD.rml -o Run00001_NLDBD_Test.root restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' @@ -510,6 +506,7 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/ + sed -i 's/https:\/\/rest-for-physics.github.io\/materials\/rest.xml/https:\/\/rest-for-physics.github.io\/materials\/legacy\/v1.4\/rest.xml/g' geometry/mySetupTemplate.gdml restG4 NLDBD.rml -o Run00001_NLDBD_Test.root restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 7f94c54d..66895a6a 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -3,7 +3,7 @@ - + ]> Date: Tue, 4 Oct 2022 19:09:04 +0200 Subject: [PATCH 40/42] prepare for merge --- .github/workflows/validation.yml | 24 +- .gitlab-ci.yml | 10 +- examples/01.NLDBD/README.md | 2 - .../01.NLDBD/geometry/mySetupTemplate.gdml | 1 + .../01.NLDBD/geometry/mySetupTemplate2.gdml | 50 --- examples/01.NLDBD/geometry/rest.xml | 400 ------------------ .../04.MuonScan/CosmicMuonsFromCircle.rml | 24 +- examples/04.MuonScan/CosmicMuonsFromWall.rml | 24 +- examples/04.MuonScan/Muon.rml | 2 +- examples/04.MuonScan/geometry.gdml | 43 ++ examples/04.MuonScan/setup.gdml | 36 ++ examples/06.IonRecoils/geometry/rest.xml | 400 ------------------ examples/06.IonRecoils/geometry/setup.gdml | 4 +- examples/07.FullChainDecay/geometry/rest.xml | 399 ----------------- .../07.FullChainDecay/geometry/setup.gdml | 2 +- examples/08.Alphas/geometry/rest.xml | 400 ------------------ .../geometry/assemblyDepthOne/setup.gdml | 2 +- .../geometry/noAssembly/setup.gdml | 2 +- test/src/examples.cxx | 2 +- 19 files changed, 143 insertions(+), 1684 deletions(-) delete mode 100644 examples/01.NLDBD/geometry/mySetupTemplate2.gdml delete mode 100644 examples/01.NLDBD/geometry/rest.xml create mode 100644 examples/04.MuonScan/geometry.gdml create mode 100644 examples/04.MuonScan/setup.gdml delete mode 100644 examples/06.IonRecoils/geometry/rest.xml delete mode 100644 examples/07.FullChainDecay/geometry/rest.xml delete mode 100644 examples/08.Alphas/geometry/rest.xml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 3d77a5e3..78554358 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -247,10 +247,6 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/06.IonRecoils/ - cd geometry - rm rest.xml - wget https://rest-for-physics.github.io/materials/rest.xml - cd .. restG4 recoils.rml -o Run00001_F20_Recoils.root restRoot -b -q Validate.C'("Run00001_F20_Recoils.root")' @@ -272,12 +268,8 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/07.FullChainDecay/ - cd geometry - rm rest.xml - wget https://rest-for-physics.github.io/materials/rest.xml - cd .. restG4 fullChain.rml -o Run00001_U238_FullChainDecay.root - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' + restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 17)' restG4 singleDecay.rml -o Run00002_U238_SingleChainDecay.root restRoot -b -q Validate.C'("Run00002_U238_SingleChainDecay.root", 1)' export REST_ISOTOPE=Be7 @@ -452,8 +444,19 @@ jobs: mkdir -p ${{ env.REST_FRAMEWORK_SOURCE_DIR }}/build && cd ${{ env.REST_FRAMEWORK_SOURCE_DIR }}/build cmake ../ -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DREST_G4=ON -DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} make -j4 install + - name: Test before + run: | + cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml + find . -name "*.gdml" + - name: Use old materials for reference Geant4 version + run: | + find . -name "*.gdml" | xargs sed -i 's/https:\/\/rest-for-physics.github.io\/materials\/rest.xml/https:\/\/rest-for-physics.github.io\/materials\/legacy\/v1.4\/rest.xml/g' + - name: Test after + run: | + cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml + find . -name "*.gdml" - name: Cache framework installation - id: framework-install-restG4-cache-old-Geant4 + id: framework-install-restG4-cache-reference uses: actions/cache@v3 with: path: ${{ env.REST_PATH }} @@ -506,7 +509,6 @@ jobs: run: | source ${{ env.REST_PATH }}/thisREST.sh cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/ - sed -i 's/https:\/\/rest-for-physics.github.io\/materials\/rest.xml/https:\/\/rest-for-physics.github.io\/materials\/legacy\/v1.4\/rest.xml/g' geometry/mySetupTemplate.gdml restG4 NLDBD.rml -o Run00001_NLDBD_Test.root restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60ae2a57..7f412c43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -74,10 +74,6 @@ Load REST Libraries: script: - source ${CI_PROJECT_DIR}/install/thisREST.sh - cd ${CI_PROJECT_DIR}/install/examples/restG4/01.NLDBD/ - - cd geometry - - rm rest.xml - - wget https://rest-for-physics.github.io/materials/rest.xml - - cd .. - restG4 NLDBD.rml - geant4-config --version - restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")' @@ -126,13 +122,9 @@ Load REST Libraries: script: - source ${CI_PROJECT_DIR}/install/thisREST.sh - cd ${CI_PROJECT_DIR}/install/examples/restG4/07.FullChainDecay/ - - cd geometry - - rm rest.xml - - wget https://rest-for-physics.github.io/materials/rest.xml - - cd .. - restG4 fullChain.rml - restG4 singleDecay.rml - - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 15)' + - restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 17)' - restRoot -b -q Validate.C'("Run00002_U238_SingleChainDecay.root", 1)' - export REST_ISOTOPE="Be7" - restG4 singleDecay.rml diff --git a/examples/01.NLDBD/README.md b/examples/01.NLDBD/README.md index 77226345..876d0b02 100644 --- a/examples/01.NLDBD/README.md +++ b/examples/01.NLDBD/README.md @@ -5,5 +5,3 @@ Date : 19/July/2019 **Event generator** : The event generator will launch neutrinoless double beta decays from the gas volume. **Command** : restG4 NLDBD.rml - -**Remark** : The second version of `NLDBD.rml` (NLDBD2.rml) is used in order to force loading the remote materials file. `NLDBD2.rml` will be used by the `ctests`. Inside the GitHub workflow the remote materials file is downloaded and the local version is overwritten (thus that pipeline simply uses `NLDBD.rml`). The reference pipeline still needs the old materials file, which now is available in the example geometry directory (named `rest.xml`). diff --git a/examples/01.NLDBD/geometry/mySetupTemplate.gdml b/examples/01.NLDBD/geometry/mySetupTemplate.gdml index 66895a6a..8d9636dc 100644 --- a/examples/01.NLDBD/geometry/mySetupTemplate.gdml +++ b/examples/01.NLDBD/geometry/mySetupTemplate.gdml @@ -43,6 +43,7 @@ &geometry; + diff --git a/examples/01.NLDBD/geometry/mySetupTemplate2.gdml b/examples/01.NLDBD/geometry/mySetupTemplate2.gdml deleted file mode 100644 index 1fca8637..00000000 --- a/examples/01.NLDBD/geometry/mySetupTemplate2.gdml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - ]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - &materials; - - &geometry; - - - - - - diff --git a/examples/01.NLDBD/geometry/rest.xml b/examples/01.NLDBD/geometry/rest.xml deleted file mode 100644 index 40a41977..00000000 --- a/examples/01.NLDBD/geometry/rest.xml +++ /dev/null @@ -1,400 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - -

- - - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/04.MuonScan/CosmicMuonsFromCircle.rml b/examples/04.MuonScan/CosmicMuonsFromCircle.rml index bb620401..b17919bf 100644 --- a/examples/04.MuonScan/CosmicMuonsFromCircle.rml +++ b/examples/04.MuonScan/CosmicMuonsFromCircle.rml @@ -1,5 +1,7 @@ - + + + @@ -10,38 +12,51 @@ + - + + + + + - + + + + + + + @@ -49,10 +64,13 @@ + + + diff --git a/examples/04.MuonScan/CosmicMuonsFromWall.rml b/examples/04.MuonScan/CosmicMuonsFromWall.rml index 027e19a0..dd178577 100644 --- a/examples/04.MuonScan/CosmicMuonsFromWall.rml +++ b/examples/04.MuonScan/CosmicMuonsFromWall.rml @@ -1,7 +1,10 @@ - + + + + @@ -12,37 +15,49 @@ First concept author G. Luzón (16-11-2020) --> + - + + + + - + + + + + + + + @@ -50,10 +65,13 @@ First concept author G. Luzón (16-11-2020) --> + + + diff --git a/examples/04.MuonScan/Muon.rml b/examples/04.MuonScan/Muon.rml index 9528488a..70fa44a1 100644 --- a/examples/04.MuonScan/Muon.rml +++ b/examples/04.MuonScan/Muon.rml @@ -11,7 +11,7 @@ - + diff --git a/examples/04.MuonScan/geometry.gdml b/examples/04.MuonScan/geometry.gdml new file mode 100644 index 00000000..85597d75 --- /dev/null +++ b/examples/04.MuonScan/geometry.gdml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/04.MuonScan/setup.gdml b/examples/04.MuonScan/setup.gdml new file mode 100644 index 00000000..2dcd3d81 --- /dev/null +++ b/examples/04.MuonScan/setup.gdml @@ -0,0 +1,36 @@ + + + + + + ]> + + + + + + + + + + + + + + + + + + + &materials; + + &geometry; + + + + + + + diff --git a/examples/06.IonRecoils/geometry/rest.xml b/examples/06.IonRecoils/geometry/rest.xml deleted file mode 100644 index 40a41977..00000000 --- a/examples/06.IonRecoils/geometry/rest.xml +++ /dev/null @@ -1,400 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - -

- - - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/06.IonRecoils/geometry/setup.gdml b/examples/06.IonRecoils/geometry/setup.gdml index c20ad4d5..37ca222b 100644 --- a/examples/06.IonRecoils/geometry/setup.gdml +++ b/examples/06.IonRecoils/geometry/setup.gdml @@ -1,9 +1,9 @@ - + - + ]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - -

- - - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/07.FullChainDecay/geometry/setup.gdml b/examples/07.FullChainDecay/geometry/setup.gdml index 13a299d4..1cf13bc5 100644 --- a/examples/07.FullChainDecay/geometry/setup.gdml +++ b/examples/07.FullChainDecay/geometry/setup.gdml @@ -3,7 +3,7 @@ - + ]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - -

- - - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/10.Geometries/geometry/assemblyDepthOne/setup.gdml b/examples/10.Geometries/geometry/assemblyDepthOne/setup.gdml index 6b8b581e..3ce27eaa 100644 --- a/examples/10.Geometries/geometry/assemblyDepthOne/setup.gdml +++ b/examples/10.Geometries/geometry/assemblyDepthOne/setup.gdml @@ -3,7 +3,7 @@ - + ]> - + ]> Date: Tue, 4 Oct 2022 19:11:15 +0200 Subject: [PATCH 41/42] remove redundant files --- examples/01.NLDBD/NLDBD2.rml | 80 --------------------- examples/04.MuonScan/geometry/geometry.gdml | 43 ----------- examples/04.MuonScan/geometry/setup.gdml | 36 ---------- 3 files changed, 159 deletions(-) delete mode 100644 examples/01.NLDBD/NLDBD2.rml delete mode 100644 examples/04.MuonScan/geometry/geometry.gdml delete mode 100644 examples/04.MuonScan/geometry/setup.gdml diff --git a/examples/01.NLDBD/NLDBD2.rml b/examples/01.NLDBD/NLDBD2.rml deleted file mode 100644 index abaedc3a..00000000 --- a/examples/01.NLDBD/NLDBD2.rml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - // Value "auto" can add simulation run into database ??? - - - // If no runTag is given in a restG4 simulation. The title of TRestGeant4Metadata will be used - - - // The output filename can be built using any member from TRestRun, fRunNumber, fRunTag, ..., etc. - - - - - - - - - - - ///three types of source definition supported: - - ///1. generator file - - - ///2. decay0 package - - - ///3. geant4 internal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/04.MuonScan/geometry/geometry.gdml b/examples/04.MuonScan/geometry/geometry.gdml deleted file mode 100644 index 85597d75..00000000 --- a/examples/04.MuonScan/geometry/geometry.gdml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/04.MuonScan/geometry/setup.gdml b/examples/04.MuonScan/geometry/setup.gdml deleted file mode 100644 index 005a7d7c..00000000 --- a/examples/04.MuonScan/geometry/setup.gdml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - ]> - - - - - - - - - - - - - - - - - - - &materials; - - &geometry; - - - - - - - From 050f67807c99de1e44bcf3dbceba3dc0b48fbfe6 Mon Sep 17 00:00:00 2001 From: Luis Obis Date: Tue, 4 Oct 2022 19:21:30 +0200 Subject: [PATCH 42/42] attempt to fix sed pipeline --- .github/workflows/validation.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 78554358..51573f1d 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -450,7 +450,13 @@ jobs: find . -name "*.gdml" - name: Use old materials for reference Geant4 version run: | + cd ${{ env.REST_PATH }} + pwd + cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml find . -name "*.gdml" | xargs sed -i 's/https:\/\/rest-for-physics.github.io\/materials\/rest.xml/https:\/\/rest-for-physics.github.io\/materials\/legacy\/v1.4\/rest.xml/g' + cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml + sed -i 's/https:\/\/rest-for-physics.github.io\/materials\/rest.xml/https:\/\/rest-for-physics.github.io\/materials\/legacy\/v1.4\/rest.xml/g' ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml + cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml - name: Test after run: | cat ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/geometry/mySetupTemplate.gdml