diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c34ded2e..2b113cc2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,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 @@ -148,6 +151,32 @@ List REST Macros: - ${CI_PROJECT_DIR}/pipeline/pandaxiii_MC/Xe136bb0n_n2E06.root expire_in: 1 day +08_alphas: + type: restG4 + script: + - source ${CI_PROJECT_DIR}/install/thisREST.sh + - cd ${CI_PROJECT_DIR}/install/examples/restG4/08.Alphas/ + - mkdir data + - export REST_ENERGY=5 + - export REST_FOIL=1 + - restG4 alphas.rml + artifacts: + paths: + - ${CI_PROJECT_DIR}/install/examples/restG4/08.Alphas/data/Run_5MeV_1um.root + expire_in: 1 day + +01_alphaTrack: + type: examples + script: + - source ${CI_PROJECT_DIR}/install/thisREST.sh + - cd ${CI_PROJECT_DIR}/install/examples/01.alphaTrack/ + - mkdir data + - export RAW_PROCESSING=ON + - export HIT_PROCESSING=ON + - export TRACK_PROCESSING=ON + - restManager --c processing.rml --f ${CI_PROJECT_DIR}/install/examples/restG4/08.Alphas/data/Run_5MeV_1um.root + - restRoot -b -q Validate.C'("data/Response_5MeV_1um.root")' + Load Gas: stage: metadata script: diff --git a/.gitmodules b/.gitmodules index 898d2c9a8..2079d1c40 100644 --- a/.gitmodules +++ b/.gitmodules @@ -64,3 +64,6 @@ [submodule "doc/userguide"] path = doc/userguide url = https://github.com/rest-for-physics/rest-docs.github.io.git +[submodule "projects/alphacamm"] + path = projects/alphacamm + url = git@lfna.unizar.es:gifna/alphacamm.git diff --git a/examples/01.alphaTrack/README.md b/examples/01.alphaTrack/README.md index 3bc967a9b..715b1bb5c 100644 --- a/examples/01.alphaTrack/README.md +++ b/examples/01.alphaTrack/README.md @@ -2,7 +2,7 @@ This example shows how to include the detector response and the reconstruction o The processes included have been adapted to facilitate the reconstruction of short energetic alpha tracks. Before using the example it is necessary to generate the Geant4 event MC data. You may use the following restG4 [example](https://github.com/rest-for-physics/restG4/examples/08.Alphas). -A quick recipe to generate the necessary data. +A quick recipe to generate the necessary data follows. Copy this example at your working directory. Then copy the restG4 generator example. diff --git a/examples/01.alphaTrack/Validate.C b/examples/01.alphaTrack/Validate.C new file mode 100644 index 000000000..cdba78ea7 --- /dev/null +++ b/examples/01.alphaTrack/Validate.C @@ -0,0 +1,12 @@ +Int_t Validate(string fname) { + TRestRun* run = new TRestRun(fname); + cout << "Run entries : " << run->GetEntries() << endl; + if (run->GetEntries() < 4350 || run->GetEntries() > 4500) { + cout << "The number of entries is not in the range (4350,4500)!" << endl; + return 1; + } + delete run; + + cout << "[\033[92m OK \x1b[0m]" << endl; + return 0; +} diff --git a/examples/01.alphaTrack/processing.rml b/examples/01.alphaTrack/processing.rml index fb5a12c3c..b97e1d253 100644 --- a/examples/01.alphaTrack/processing.rml +++ b/examples/01.alphaTrack/processing.rml @@ -101,12 +101,16 @@ - + - + + + + - + - + @@ -465,7 +466,7 @@ minPeakAmplitude : Minimum peak signal amplitude to be considered at all. --> - +