From db0391452d33a11f1c38c9dd90592ef35b1a4ee9 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 31 Jan 2022 11:44:17 +0100 Subject: [PATCH 01/31] Adding 01.alphaTrack validation routine --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ examples/01.alphaTrack/Validate.C | 11 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 examples/01.alphaTrack/Validate.C diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e40a2295..9f5aa52bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,9 @@ stages: # Stage to validate restG4 package examples - restG4 + # Stage to validate framework examples + - examples + # Stage to validate data chain processing constructions (TREX-DM data, PandaX-III topology, etc). - restManager_process @@ -201,6 +204,32 @@ listRESTMacros: - ${CI_PROJECT_DIR}/pipeline/pandaxiii_MC/Xe136bb0n_n2E06.root expire_in: 1 day +08_alphas: + type: restG4 + script: + - . ${CI_PROJECT_DIR}/install_latest/thisREST.sh + - cd ${CI_PROJECT_DIR}/install_latest/examples/restG4/08.Alphas/ + - mkdir data + - export REST_ENERGY=5 + - export REST_FOIL=1 + - restG4 alphas.rml + artifacts: + paths: + - ${CI_PROJECT_DIR}/install_latest/examples/restG4/08.Alphas/data/Run_5MeV_1um.root + expire_in: 1 day + +01_alphaTrack: + type: examples + script: + - . ${CI_PROJECT_DIR}/install_latest/thisREST.sh + - cd ${CI_PROJECT_DIR}/install_latest/examples/restG4/01.alphaTrack/ + - export RAW_PROCESSING=ON + - export HIT_PROCESSING=ON + - export TRACK_PROCESSING=ON + - mkdir data + - restManager --c processing.rml --f ${CI_PROJECT_DIR}/install_latest/examples/restG4/08.Alphas/data/Run_5MeV_1um.root + - restRoot -b -q Validate.C'("data/Response_5MeV_1um.root")' + LoadGas: type: metadata script: diff --git a/examples/01.alphaTrack/Validate.C b/examples/01.alphaTrack/Validate.C new file mode 100644 index 000000000..6d9611ae1 --- /dev/null +++ b/examples/01.alphaTrack/Validate.C @@ -0,0 +1,11 @@ +Int_t Validate(string fname) { + TRestRun* run = new TRestRun(fname); + if (run->GetEntries() != 4424) { + cout << "The number of entries is not 4424!" << endl; + return 1; + } + delete run; + + cout << "[\033[92m OK \x1b[0m]" << endl; + return 0; +} From dd4e3744d95abc99e68b937dc3adc408f6a0164d Mon Sep 17 00:00:00 2001 From: git Date: Mon, 31 Jan 2022 11:54:32 +0100 Subject: [PATCH 02/31] Pipeline/trexdm Removing forking feature from pipeline --- .gitlab-ci.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f5aa52bf..be59b1b55 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -295,28 +295,17 @@ trexDM_data_latest: - . ${CI_PROJECT_DIR}/install_latest/thisREST.sh - cd ${CI_PROJECT_DIR}/pipeline/trex - wget https://sultan.unizar.es/trexdm-readouts/readouts_v2.3.root - - cp R01928_tagTest_Vm_250_Vd_160_Pr_6_Gain_0x0_Shape_0xF_Clock_0x4-068.aqs R01929_tagTest_Vm_250_Vd_160_Pr_6_Gain_0x0_Shape_0xF_Clock_0x4-068.aqs - - restManager --fork --c 01_raw.rml --f "*.aqs" - - sleep 60 - - ls -lrt - - restManager --fork --c 02_signal.rml --f "RawData*.root" - - sleep 60 - - ls -lrt - - restManager --fork --c 03_hits.rml --f "Signals*.root" - - sleep 30 - - ls -lrt + - restManager --c 01_raw.rml --f R01928_tagTest_Vm_250_Vd_160_Pr_6_Gain_0x0_Shape_0xF_Clock_0x4-068.aqs + - restManager --c 02_signal.rml --f RawData_01928.root + - restManager --c 03_hits.rml --f Signals_01928.root - restRoot -b -q ../MakeBasicTree.C'("Hits_01928.root")' - rm RawData_01928.root - rm Signals_01928.root - root -b -q ../ValidateTrees.C'("validation.root")' - - restRoot -b -q ../MakeBasicTree.C'("Hits_01929.root")' - - rm RawData_01929.root - - rm Signals_01929.root - - root -b -q ../ValidateTrees.C'("validation.root")' - - restRoot -b -q ValidateDetectorParams.C'("Hits_01929.root")' + - restRoot -b -q ValidateDetectorParams.C'("Hits_01928.root")' artifacts: paths: - - ${CI_PROJECT_DIR}/pipeline/trex/Hits_01929.root + - ${CI_PROJECT_DIR}/pipeline/trex/Hits_01928.root expire_in: 1 day pandaXIII_Topological: @@ -379,7 +368,7 @@ AnalysisPlot: script: - . ${CI_PROJECT_DIR}/install_latest/thisREST.sh - cd ${CI_PROJECT_DIR}/pipeline/analysisPlot/ - - restManager --c summary.rml --f ${CI_PROJECT_DIR}/pipeline/trex/Hits_01929.root + - restManager --c summary.rml --f ${CI_PROJECT_DIR}/pipeline/trex/Hits_01928.root AnalysisPlot2: type: postProcessing From 18bd869c1c8d299b6e487567a569c9e443c4c0f5 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 31 Jan 2022 14:57:20 +0100 Subject: [PATCH 03/31] Fixing pipeline --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be59b1b55..8f06d3936 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -222,11 +222,11 @@ listRESTMacros: type: examples script: - . ${CI_PROJECT_DIR}/install_latest/thisREST.sh - - cd ${CI_PROJECT_DIR}/install_latest/examples/restG4/01.alphaTrack/ + - cd ${CI_PROJECT_DIR}/install_latest/examples/01.alphaTrack/ + - mkdir data - export RAW_PROCESSING=ON - export HIT_PROCESSING=ON - export TRACK_PROCESSING=ON - - mkdir data - restManager --c processing.rml --f ${CI_PROJECT_DIR}/install_latest/examples/restG4/08.Alphas/data/Run_5MeV_1um.root - restRoot -b -q Validate.C'("data/Response_5MeV_1um.root")' From e9b5649e7c3b810dd4c2092fe1e05241bd40a2b2 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 31 Jan 2022 17:14:11 +0100 Subject: [PATCH 04/31] examples/01.alphaTrack adapting to new ZeroSuppresion scheme --- examples/01.alphaTrack/processing.rml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/01.alphaTrack/processing.rml b/examples/01.alphaTrack/processing.rml index 2f8352549..a83912939 100644 --- a/examples/01.alphaTrack/processing.rml +++ b/examples/01.alphaTrack/processing.rml @@ -101,13 +101,15 @@ - + + - + + + + - + - + @@ -465,7 +466,7 @@ minPeakAmplitude : Minimum peak signal amplitude to be considered at all. --> - +