diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index e1f143143..40bd20705 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -213,72 +213,15 @@ jobs: with: key: ${{ env.BRANCH_NAME }}-${{ github.sha }} path: ${{ env.REST_PATH }} - - name: 02_PandaXiiiMC + - name: PandaXIII Geant4 run: | source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC restG4 ${{ env.REST_PATH }}/examples/restG4/05.PandaXIII/Xe136bb0n.rml -o Xe136bb0n.root - restRoot -b -q ${{ env.REST_PATH }}/examples/restG4/05.PandaXIII/Validate.C'("Xe136bb0n.root")' - # - name: 02_PandaXiiiMC small for reference # We can use these artifacts to update the validation reference file - # run: | - # source ${{ env.REST_PATH }}/thisREST.sh - # cd framework/pipeline/pandaxiii_MC - # restG4 ${{ env.REST_PATH }}/examples/restG4/05.PandaXIII/Xe136bb0n.rml -o Xe136bb0n_small_reference_pipeline.root -n 5 - # restManager --c AllProcesses.rml --i Xe136bb0n_small_reference_pipeline.root --o Xe136bb0n_small_reference_processed_pipeline.root - # restRoot -b -q ../MakeBasicTree.C'("Xe136bb0n_small_reference_processed_pipeline.root", "Xe136bb0n_validation_pipeline.root")' - # - name: Upload Artifacts - # uses: actions/upload-artifact@v3 - # with: - # name: Xe136bb - # path: | - # framework/pipeline/pandaxiii_MC/Xe136bb0n.root - # framework/pipeline/pandaxiii_MC/Xe136bb0n_small_reference_pipeline.root - # framework/pipeline/pandaxiii_MC/Xe136bb0n_small_reference_processed_pipeline.root - # framework/pipeline/pandaxiii_MC/Xe136bb0n_validation_pipeline.root - # retention-days: 1 - - name: PandaXIII Topological - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC - restManager --c AllProcesses.rml --i Xe136bb0n_small_reference.root --o Xe136bb0n_small_reference_processed.root - restRoot -b -q ../MakeBasicTree.C'("Xe136bb0n_small_reference_processed.root")' - restRoot -b -q ../ValidateTrees.C'("Xe136bb0n_validation.root")' - # restManager --c plots.rml --i Xe136bb0n_small_reference_processed.root - # This command is failing in the docker, reproducible locally, not clear why... - # echo | sleep 5 | restManager --c plots.rml --i testOutput.root - # - name: Upload Artifacts - # uses: actions/upload-artifact@v3 - # with: - # name: PandaTrackParam - # path: framework/pipeline/pandaxiii_MC/trackParameter.png - # retention-days: 1 - - name: PandaXIII Topological from Geant4 - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC - echo "using just-generated g4 file" - restManager --c AllProcesses.rml --i Xe136bb0n.root --o Xe136bb0n_processed.root --j 1 --e 5 - restRoot -b -q ../MakeBasicTree.C'("Xe136bb0n_processed.root")' - restRoot -b -q ../ValidateTrees.C'("Xe136bb0n_validation.root")' - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: PandaTestOutput - path: framework/pipeline/pandaxiii_MC/Xe136bb0n_processed.root - retention-days: 1 - name: PandaXIII Data run: | source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_data + cd framework/pipeline/panda-x restManager --c P3AutoChain.rml --i CoBo_AsAd0_2019-03-15.graw --o testOutput.root --j 1 - restRoot -b -q ../MakeBasicTree.C'("testOutput.root")' - restRoot -b -q ../ValidateTrees.C'("validation.root")' - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: PandaTriggerRate - path: framework/pipeline/pandaxiii_data/TriggerRate.png - retention-days: 1 trex-dm: name: "TREX-DM" @@ -455,77 +398,6 @@ jobs: key: ${{ env.BRANCH_NAME }}-${{ github.sha }} path: ${{ env.REST_PATH }} - - pandax-iii-reference: - name: "PandaX-III on reference version" - runs-on: ubuntu-latest - container: - image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022 - needs: [ framework-install-reference ] - steps: - - uses: actions/checkout@v3 - with: - repository: rest-for-physics/framework - path: framework - - name: Checkout framework branch - run: | - cd framework - ./scripts/checkoutRemoteBranch.sh ${{ env.BRANCH_NAME }} - - name: Restore cache - uses: actions/cache@v3 - id: framework-install-cache-reference - with: - key: ${{ env.BRANCH_NAME }}-${{ github.sha }} - path: ${{ env.REST_PATH }} - - name: 02_PandaXiiiMC - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC - restG4 ${{ env.REST_PATH }}/examples/restG4/05.PandaXIII/Xe136bb0n.rml -o Xe136bb0n.root - restRoot -b -q ${{ env.REST_PATH }}/examples/restG4/05.PandaXIII/Validate.C'("Xe136bb0n.root")' - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: Xe136bbRef - path: framework/pipeline/pandaxiii_MC/Xe136bb0n.root - retention-days: 1 - - name: PandaXIII Topological - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC - restManager --c AllProcesses.rml --i Xe136bb0n_small_reference.root --o Xe136bb0n_small_reference_processed.root --j 1 --e 5 - restRoot -b -q ../MakeBasicTree.C'("Xe136bb0n_small_reference_processed.root")' - restRoot -b -q ../ValidateTrees.C'("Xe136bb0n_validation.root")' - # restManager --c plots.rml --i Xe136bb0n_small_reference_processed.root - - name: PandaXIII Topological from Geant4 - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_MC - echo "using just-generated g4 file" - restManager --c AllProcesses.rml --i Xe136bb0n.root --o Xe136bb0n_processed.root --j 1 --e 5 - restRoot -b -q ../MakeBasicTree.C'("Xe136bb0n_processed.root")' - # TODO: regenerate reference file - # restRoot -b -q ../ValidateTrees.C'("Xe136bb0n_validation_G4_v10.4.3.root")' - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: PandaTestOutputRef - path: framework/pipeline/pandaxiii_MC/Xe136bb0n_processed.root - retention-days: 1 - - name: PandaXIII Data - run: | - source ${{ env.REST_PATH }}/thisREST.sh - cd framework/pipeline/pandaxiii_data - restManager --c P3AutoChain.rml --i CoBo_AsAd0_2019-03-15.graw --o testOutput.root --j 1 - restRoot -b -q ../MakeBasicTree.C'("testOutput.root")' - restRoot -b -q ../ValidateTrees.C'("validation.root")' - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: PandaTriggerRateRef - path: framework/pipeline/pandaxiii_data/TriggerRate.png - retention-days: 1 - examples-reference: name: Run examples on reference version runs-on: ubuntu-latest diff --git a/pipeline/pandaxiii_data/CoBo_AsAd0_2019-03-15.graw b/pipeline/panda-x/CoBo_AsAd0_2019-03-15.graw similarity index 100% rename from pipeline/pandaxiii_data/CoBo_AsAd0_2019-03-15.graw rename to pipeline/panda-x/CoBo_AsAd0_2019-03-15.graw diff --git a/pipeline/panda-x/P3AutoChain.rml b/pipeline/panda-x/P3AutoChain.rml new file mode 100644 index 000000000..75327d268 --- /dev/null +++ b/pipeline/panda-x/P3AutoChain.rml @@ -0,0 +1,91 @@ + + + + + + + + //change this value to "auto" to enable database + + + + + + + + + + + + + + + /// We define all observables except MinValue because it is not yet in validation chain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pipeline/pandaxiii_MC/AllProcesses.rml b/pipeline/pandaxiii_MC/AllProcesses.rml deleted file mode 100644 index 04a7329bc..000000000 --- a/pipeline/pandaxiii_MC/AllProcesses.rml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - %options are : silent, warning, info, debug - - // set to 0 as random seed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pipeline/pandaxiii_MC/README.md b/pipeline/pandaxiii_MC/README.md deleted file mode 100644 index e33796ef4..000000000 --- a/pipeline/pandaxiii_MC/README.md +++ /dev/null @@ -1,13 +0,0 @@ -The following scripts are used to validate the PandaX-III simulation & topological analysis chain. - -- **step 1**: Use `restG4 Xe136bb0n.rml` to run test Geant4 simulation. Use `ValidateG4.C` to check if the simulation - produced the expected output. i.e. all 500 events are simulated and metadata is correctly recorded. The output file - will be used later on. - -- **step 2**: Use `AllProcesses.rml` to run restManager for REST simulation and topological analysis. `processes_2D.rml` - and `readout-140kg.rml` is included by it. - -- **step 3**: Use `plots.rml` to check the plots can be successfully drawn by TRestAnalysisPlot - -File `Xe136bb0n_small_reference.root` corresponds to the file generated by step 1 using Geant4 11.0.2 but with a smaller -number of simulated events to reduce size. events. diff --git a/pipeline/pandaxiii_MC/Xe136bb0n_small_reference.root b/pipeline/pandaxiii_MC/Xe136bb0n_small_reference.root deleted file mode 100644 index ea364d450..000000000 Binary files a/pipeline/pandaxiii_MC/Xe136bb0n_small_reference.root and /dev/null differ diff --git a/pipeline/pandaxiii_MC/Xe136bb0n_validation.root b/pipeline/pandaxiii_MC/Xe136bb0n_validation.root deleted file mode 100644 index 300359553..000000000 Binary files a/pipeline/pandaxiii_MC/Xe136bb0n_validation.root and /dev/null differ diff --git a/pipeline/pandaxiii_MC/Xe136bb0n_validation_G4_v10.4.3.root b/pipeline/pandaxiii_MC/Xe136bb0n_validation_G4_v10.4.3.root deleted file mode 100644 index 4deb656af..000000000 Binary files a/pipeline/pandaxiii_MC/Xe136bb0n_validation_G4_v10.4.3.root and /dev/null differ diff --git a/pipeline/pandaxiii_MC/Xe136bb0n_validation_root6.20.root b/pipeline/pandaxiii_MC/Xe136bb0n_validation_root6.20.root deleted file mode 100644 index e63912f3e..000000000 Binary files a/pipeline/pandaxiii_MC/Xe136bb0n_validation_root6.20.root and /dev/null differ diff --git a/pipeline/pandaxiii_MC/plots.rml b/pipeline/pandaxiii_MC/plots.rml deleted file mode 100644 index efc5ec537..000000000 --- a/pipeline/pandaxiii_MC/plots.rml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - //change this value to "auto" to enable database - //change this value to "auto" to enable database - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pipeline/pandaxiii_MC/processes_2D.rml b/pipeline/pandaxiii_MC/processes_2D.rml deleted file mode 100644 index aa6aa3cb0..000000000 --- a/pipeline/pandaxiii_MC/processes_2D.rml +++ /dev/null @@ -1,587 +0,0 @@ - - - - - - - - - - - - - - - - // fwhm - // absolute gain // parameter name="electronicsGain" - value="671744" // electrons for 4096 ADC units - - - - - - - - - // fwhm - // absolute gain // parameter name="electronicsGain" - value="671744" // electrons for 4096 ADC units - - - - - - - - - - - - - - - - - - // Number of sigmas to perform the calculation - - - - // // electrons in each time bin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //response file to be used - to shape the signal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pipeline/pandaxiii_MC/readout-140kg.rml b/pipeline/pandaxiii_MC/readout-140kg.rml deleted file mode 100644 index e4ff8fc72..000000000 --- a/pipeline/pandaxiii_MC/readout-140kg.rml +++ /dev/null @@ -1,51 +0,0 @@ - - - - //The Microbulk MicroMegas - - - // Y-strips (pixel has fixed x coordinate) - - - // Last strip is special - - - // X-strips (pixel has fixed y coordinate) - - // First strip is special - - - - - - - - - - // 4 modules - - - // 6-modules - - - // 8-modules - - - // 8-modules - - - // 8-modules - - - // 8-modules - - - // 6-modules - - - // 4-modules - - - - - diff --git a/pipeline/pandaxiii_MC/readouts.rml b/pipeline/pandaxiii_MC/readouts.rml deleted file mode 100644 index 09838438b..000000000 --- a/pipeline/pandaxiii_MC/readouts.rml +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - - - - - - - - - - //The Microbulk MicroMegas - - - // Y-strips (pixel has fixed x coordinate) - - - - - - - - - - // Last strip is special - - - - - - - - - // X-strips (pixel has fixed y coordinate) - - // First strip is special - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // 4 modules - - - - - // 6-modules - - - - - // 7-modules - - - - - // 7-modules - - - - - // 7-modules - - - - - // 6-modules - - - - - // 4-modules - - - - - - - - - - - - - - - - - - - - - - - // 2 modules - - - - - // 5-modules - - - - - // 6-modules - - - - - // 7-modules - - - - - // 6-modules - - - - - // 5-modules - - - - - // 2-modules - - - - - - - - diff --git a/pipeline/pandaxiii_data/P3AutoChain.rml b/pipeline/pandaxiii_data/P3AutoChain.rml deleted file mode 100644 index 637f2d5b7..000000000 --- a/pipeline/pandaxiii_data/P3AutoChain.rml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - //change this value to "auto" to enable database - - - - - - - - - - - - - - - /// We define all observables except MinValue because it is not yet in validation chain - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pipeline/pandaxiii_data/validation.root b/pipeline/pandaxiii_data/validation.root deleted file mode 100644 index 5d74aa450..000000000 Binary files a/pipeline/pandaxiii_data/validation.root and /dev/null differ