-
Notifications
You must be signed in to change notification settings - Fork 11
663 lines (635 loc) · 25.8 KB
/
validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
name: Validation
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows you to run this workflow from submodules
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CMAKE_BUILD_TYPE: Release
REST_PATH: /rest/framework/install
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
defaults:
run:
shell: bash
jobs:
build-test:
name: Build and run tests
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_PREFIX_PATH=$GARFIELD_INSTALL -DREST_ALL_LIBS=ON -DREST_G4=ON -DREST_GARFIELD=ON -DREST_MPFR=ON -DTEST=ON"
branch: ${{ env.BRANCH_NAME }}
build-path: build
- name: Test
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/build
ctest --output-on-failure
framework-install:
name: Build and cache installation
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_PREFIX_PATH=$GARFIELD_INSTALL -DREST_ALL_LIBS=ON -DREST_G4=ON -DREST_GARFIELD=ON -DREST_MPFR=ON"
branch: ${{ env.BRANCH_NAME }}
- name: Test REST
run: |
printenv
cat ${{ env.REST_PATH }}/thisREST.sh
source ${{ env.REST_PATH }}/thisREST.sh
restManager ListMacros
restRoot -b -q
- name: Cache framework installation
id: framework-install-cache
uses: actions/cache@v3
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rest-install
path: ${{ env.REST_PATH }}
retention-days: 1
file-compatibility:
name: "Previous Version File Compatibility"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
steps:
- uses: actions/checkout@v3
with:
repository: rest-for-physics/framework
path: framework
- name: Restore cache
uses: actions/cache@v3
id: framework-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Open V2.2 file
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/fileopening
restManager PrintTrees v2.2.30_hits.root
macros-health:
name: "Macros with clean error output"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
steps:
- uses: actions/checkout@v3
with:
repository: rest-for-physics/framework
path: framework
- name: Restore cache
uses: actions/cache@v3
id: framework-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Load restRootMacros
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cat ${{ env.REST_PATH }}/thisREST.sh
echo ${{ env.ROOT_INCLUDE_PATH}}
echo $ROOT_INCLUDE_PATH
cd framework/pipeline
export DISPLAY=localhost:0.0
echo "Running validation script"
python3 validateMacros.py
pyroot:
name: "PyROOT"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
steps:
- name: Restore cache
uses: actions/cache@v3
id: framework-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Test REST classes in PyROOT
run: |
source ${{ env.REST_PATH }}/thisREST.sh
python3 -c """import ROOT;import REST;ROOT.TRestRun();ROOT.TRestGeant4Event()"""
metadata:
name: "Metadata"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
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
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
# Not used in gitlab pipeline, checks $CI_SERVER_HOST
- name: Load Gas
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/metadata/gas/
restRoot -b -q LoadGasFromServerAndValidate.C
# Not working, not used in gitlab pipeline
#- name: Generate Gas
# run: |
# source ${{ env.REST_PATH }}/thisREST.sh
# source $(root-config --bindir)/thisroot.sh
# cd framework/pipeline/metadata/gas/
# restRoot -b -q GenerateDummyGas.C
- name: Generate Readout
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/metadata/readout/
restManager --c generateReadout.rml --o readout.root
restRoot -b -q PrintReadout.C'("readout.root")' > /dev/null
# We need to introduce basic validation here
# - diff validation.txt print.txt
- name: Basic Readout
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/projects/basic-examples/
git submodule update --init .
cd basic-readouts
git submodule update --init .
restRoot -b -q GenerateReadouts.C'("basic.root")'
restRoot -b -q BasicValidation.C'("basic.root", "pixelDecoding")'
pandax-iii:
name: "PandaX-III"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
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
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: 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
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"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
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
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: TREX-DM Latest Data
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/trex
wget https://sultan.unizar.es/trexdm-readouts/readouts_v2.4.root
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 ValidateDetectorParams.C'("Hits_01928.root")'
python3 validateStreamer.py
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: TREXHits
path: framework/pipeline/trex/Hits_01928.root
retention-days: 1
- name: AnalysisPlot
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/analysisPlot/
restManager --c summary.rml --f ../trex/Hits_01928.root
- name: AnalysisPlot2
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/analysisPlot/
restManager --batch --c classify.rml
restRoot -b -q ValidateClassify.C
examples:
name: Run examples
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install ]
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
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Test Metadata
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples
restManager --c saveMetadataFile.rml --o meta.root
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Metadata
path: ${{ env.REST_PATH }}/examples/meta.root
retention-days: 1
- name: 01_NLDBD
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/
restG4 NLDBD.rml
restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: NLDBD
path: ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/Run00001_NLDBD_Test.root
retention-days: 1
- name: Event Selection
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/selection
restManager --c g4Analysis.rml --f ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/Run00001_NLDBD_Test.root
restManager --c g4OnSelection.rml --f Run00001_NLDBD_Test_g4Analysis.root
restRoot -b -q Validate.C'("Run00001_NLDBD_Test_EvSelection.root")'
restManager --c g4EvSelectionIDsFromFile.rml --f Run00001_NLDBD_Test_g4Analysis.root
restRoot -b -q ValidateIDsFromFile.C'("Run00001_NLDBD_Test_EvSelectionIDsFromFile.root")'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: EventSelection
path: framework/pipeline/selection/IDs.txt
retention-days: 1
- name: 08_alphas
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/restG4/08.Alphas/
mkdir data
export REST_ENERGY=5
export REST_FOIL=1
restG4 alphas.rml
# - name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: Alphas
# path: ${{ env.REST_PATH }}/examples/restG4/08.Alphas/data/Run_5MeV_1um.root
# retention-days: 1
- name: 01_alphaTrack
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/01.alphaTrack/
mkdir data
export RAW_PROCESSING=ON
export HIT_PROCESSING=ON
export TRACK_PROCESSING=ON
restManager --c processing.rml --f ../restG4/08.Alphas/data/Run_5MeV_1um.root
restRoot -b -q Validate.C'("data/Response_5MeV_1um.root")'
# - name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: AlphaTrack
# path: ${{ env.REST_PATH }}/examples/restG4/08.Alphas/data/Run_5MeV_1um.root
# retention-days: 1
# Reference dependencies version
framework-install-reference:
name: Build with reference version of dependencies
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
steps:
- uses: actions/checkout@v3
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_PREFIX_PATH=$GARFIELD_INSTALL -DREST_ALL_LIBS=ON -DREST_G4=ON -DREST_GARFIELD=ON"
branch: ${{ env.BRANCH_NAME }}
- name: Use old materials for reference Geant4 version
run: |
cd ${{ env.REST_PATH }}
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 REST
run: |
printenv
cat ${{ env.REST_PATH }}/thisREST.sh
source ${{ env.REST_PATH }}/thisREST.sh
restManager ListMacros
restRoot -b -q
- name: Cache framework installation
id: framework-install-cache-reference
uses: actions/cache@v3
with:
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
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: Test Metadata
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples
restManager --c saveMetadataFile.rml --o meta.root
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: MetadataRef
path: ${{ env.REST_PATH }}/examples/meta.root
retention-days: 1
- name: 01_NLDBD
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/
restG4 NLDBD.rml
restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: NLDBDRef
path: ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/Run00001_NLDBD_Test.root
retention-days: 1
- name: Event Selection
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/selection
restManager --c g4Analysis.rml --f ${{ env.REST_PATH }}/examples/restG4/01.NLDBD/Run00001_NLDBD_Test.root
restManager --c g4OnSelection.rml --f Run00001_NLDBD_Test_g4Analysis.root
restRoot -b -q Validate.C'("Run00001_NLDBD_Test_EvSelection.root", true)'
restManager --c g4EvSelectionIDsFromFile.rml --f Run00001_NLDBD_Test_g4Analysis.root
restRoot -b -q ValidateIDsFromFile.C'("Run00001_NLDBD_Test_EvSelectionIDsFromFile.root")'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: EventSelectionRef
path: framework/pipeline/selection/IDs.txt
retention-days: 1
- name: 07_decay
run: |
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", 15)'
restG4 singleDecay.rml -o Run00002_U238_SingleChainDecay.root
restRoot -b -q Validate.C'("Run00002_U238_SingleChainDecay.root", 1)'
export REST_ISOTOPE=Be7
restG4 singleDecay.rml
restRoot -b -q Validate.C'("Run00002_Be7_SingleChainDecay.root", 1)'
- name: 08_alphas
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/restG4/08.Alphas/
mkdir data
export REST_ENERGY=5
export REST_FOIL=1
restG4 alphas.rml
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: AlphasRef
path: ${{ env.REST_PATH }}/examples/restG4/08.Alphas/data/Run_5MeV_1um.root
retention-days: 1
- name: 01_alphaTrack
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.REST_PATH }}/examples/01.alphaTrack/
mkdir data
export RAW_PROCESSING=ON
export HIT_PROCESSING=ON
export TRACK_PROCESSING=ON
restManager --c processing.rml --f ../restG4/08.Alphas/data/Run_5MeV_1um.root
restRoot -b -q Validate.C'("data/Response_5MeV_1um.root")'
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: AlphaTrack
path: ${{ env.REST_PATH }}/examples/restG4/08.Alphas/data/Run_5MeV_1um.root
retention-days: 1
rawlib-validation:
uses: rest-for-physics/rawlib/.github/workflows/validation.yml@master
geant4lib-validation:
uses: rest-for-physics/geant4lib/.github/workflows/validation.yml@master
detectorlib-validation:
uses: rest-for-physics/detectorlib/.github/workflows/validation.yml@master
connectorslib-validation:
uses: rest-for-physics/connectorslib/.github/workflows/validation.yml@master
tracklib-validation:
uses: rest-for-physics/tracklib/.github/workflows/validation.yml@master
legacylib-validation:
uses: rest-for-physics/legacylib/.github/workflows/validation.yml@master
axionlib-validation:
uses: rest-for-physics/axionlib/.github/workflows/validation.yml@master
wimplib-validation:
uses: rest-for-physics/wimplib/.github/workflows/validation.yml@master
restG4-validation:
uses: rest-for-physics/restG4/.github/workflows/validation.yml@master