-
Notifications
You must be signed in to change notification settings - Fork 6
546 lines (520 loc) · 20.7 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
name: Validation
on:
workflow_dispatch:
workflow_call:
env:
CMAKE_BUILD_TYPE: Release
REST_INSTALL_PATH: /rest/restG4/install
RESTG4_PATH: restG4
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
defaults:
run:
shell: bash
jobs:
precommit-config:
name: Validate pre-commit config
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- name: Checkout restG4
uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/restG4
path: ${{ env.RESTG4_PATH }}
- name: Verify pre-commit config files match
run: |
cd ${{ env.RESTG4_PATH }}
curl https://raw.githubusercontent.com/rest-for-physics/framework/master/scripts/validatePreCommitConfig.py | python
framework-install:
name: Install framework with restG4
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- name: Print version of dependencies for image
run: version.sh
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DREST_G4=ON -DCMAKE_INSTALL_PREFIX=${{ env.REST_INSTALL_PATH }}"
branch: ${{ env.BRANCH_NAME }}
- name: Cache framework installation
id: framework-install-restG4-cache
uses: actions/cache@v3
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
check-installation:
name: Check framework and restG4 are accessible
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-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Check libraries
run: |
echo $LD_LIBRARY_PATH
ls -lht ${{ env.REST_INSTALL_PATH }}
ls -lht ${{ env.REST_INSTALL_PATH }}/lib | grep .so
ls -lht ${{ env.REST_INSTALL_PATH }}/bin
- name: Check root
run: |
root-config --version
root -b -q
- name: Check framework
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cat ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cat ${{ env.REST_INSTALL_PATH }}/bin/rest-config
rest-config --welcome
- name: Check restG4
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
restG4 --help
restG4-standalone-install:
name: Install restG4 as a standalone application using the installed framework
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ framework-install, check-installation ]
steps:
- name: Checkout restG4
uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/restG4
path: ${{ env.RESTG4_PATH }}
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Build as standalone
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.RESTG4_PATH }}
mkdir -p build-standalone && cd build-standalone
cmake ../ -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_INSTALL_PREFIX=/rest/restG4-standalone/install
make -j4 install
/rest/restG4-standalone/install/bin/restG4 --help
restG4-examples-01:
name: "Example 01: NLDBD"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/01.NLDBD/
restG4 NLDBD.rml -o Run00001_NLDBD_Test.root
restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")'
restG4-examples-03:
name: "Example 03: Fluorescence"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/03.Fluorescence/
restG4 gamma.rml -o gamma_fluorescence.root
restManager --c g4Analysis.rml --f gamma_fluorescence.root -o gamma_fluorescence_analysis.root
restRoot -b -q Validate.C'("gamma_fluorescence_analysis.root")'
restG4-examples-04:
name: "Example 04: Cosmic Muons"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/04.MuonScan/
restG4 MuonsFromPoint.rml -o MuonsFromPoint.root
restRoot -b -q ValidateMuonsFromPoint.C'("MuonsFromPoint.root")'
restG4 CosmicMuonsFromWall.rml -o CosmicMuonsFromWall.root
restRoot -b -q ValidateCosmicMuonsFromWall.C'("CosmicMuonsFromWall.root")'
restG4 CosmicMuonsFromCircle.rml -o CosmicMuonsFromCircle.root
restRoot -b -q ValidateCosmicMuonsFromCircle.C'("CosmicMuonsFromCircle.root")'
restG4 CosmicMuons.rml -o CosmicMuons.root
restRoot -b -q ValidateCosmicMuons.C'("CosmicMuons.root")'
restG4-examples-05:
name: "Example 05: PandaX-III"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/05.PandaXIII/
restG4 Xe136bb0n.rml -o Xe136bb0n.root
restRoot -b -q Validate.C'("Xe136bb0n.root")'
restG4-examples-06:
name: "Example 06: Ion recoils"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/06.IonRecoils/
restG4 recoils.rml -o Run00001_F20_Recoils.root
restRoot -b -q Validate.C'("Run00001_F20_Recoils.root")'
restG4-examples-07:
name: "Example 07: Decay"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/07.FullChainDecay/
restG4 fullChain.rml -o Run00001_U238_FullChainDecay.root
restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 16)'
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)'
restG4-examples-08:
name: "Example 08: Alphas"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/08.Alphas/
mkdir data
export REST_ENERGY=5
export REST_FOIL=1
restG4 alphas.rml -o data/Run_5MeV_1um.root
restManager --c analysis.rml --f data/Run_5MeV_1um.root
export REST_ENERGY=5
export REST_FOIL=5
restG4 alphas.rml -o data/Run_5MeV_5um.root
restManager --c analysis.rml --f data/Run_5MeV_5um.root
export REST_ENERGY=1
export REST_FOIL=5
restG4 alphas.rml -o data/Run_1MeV_1um.root
restManager --c analysis.rml --f data/Run_1MeV_1um.root
restManager --c plots.rml --f "data/*g4Ana*root" --batch
restRoot -b -q Validate.C
restG4-examples-09:
name: "Example 09: Shielding"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/09.Pb210_Shield/
restG4 Pb210.rml -o Run00001_Pb210_Shielding.root
restRoot -b -q Validate.C'("Run00001_Pb210_Shielding.root")'
restG4-examples-10:
name: "Example 10: Geometries"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/10.Geometries/
restG4 Assembly.rml -o Run00001_Assembly_Assembly.root
restRoot -b -q Validate.C'("Run00001_Assembly_Assembly.root")'
restG4-examples-11:
name: "Example 11: X-Rays"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Launching Gammas
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/11.Xrays/
restG4 xrays.rml -o xrays_simulation.root
restManager --c analysis.rml --f xrays_simulation.root --o xrays_simulation_analysis.root
restRoot -b -q GetQE.C'("xrays_simulation_analysis.root")'
- name: Launching Fe55 source
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/11.Xrays/
restG4 Fe55.rml -o Fe55_simulation.root
restManager --c analysis.rml --f Fe55_simulation.root --o Fe55_simulation_analysis.root
restRoot -b -q ValidateFe55.C'("Fe55_simulation_analysis.root")'
restG4-examples-12:
name: "Example 12: Generators"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-01 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/12.Generators/
restG4 CosineSquaredCircle.rml -o CosineSquaredCircle.root
restRoot -b -q ValidateCosineSquared.C'("CosineSquaredCircle.root")'
restG4 CosmicGenerator.rml -o CosmicGenerator.root
restRoot -b -q ValidateCosmicGenerator.C'("CosmicGenerator.root")'
restG4-examples-13:
name: "Example 13: IAXO"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-10 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/13.IAXO/
restG4 Neutrons.rml -o Neutrons.root
restRoot -b -q Validate.C'("Neutrons.root")'
restG4-examples-14:
name: "Example 14: DetectorResponse"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ check-installation, restG4-examples-10 ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/14.DetectorResponse/
source launchResponse.sh
restManager --c analysis.rml --f RestG4_XenonNeon_30Pct_1.5bar_Drift3cm_Size6cm.root
restRoot -b -q ValidateResponse.C'("G4Analysis_XenonNeon_30Pct_1.5bar_Drift3cm_Size6cm.root")'
# Reference version of Geant4
framework-install-reference:
name: Install framework with restG4 on an older reference version of Geant4 (v10.4.3)
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
steps:
- name: Print version of dependencies for image
run: version.sh
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DREST_G4=ON -DCMAKE_INSTALL_PREFIX=${{ env.REST_INSTALL_PATH }}"
branch: ${{ env.BRANCH_NAME }}
- name: Use old materials for reference Geant4 version
run: |
cd ${{ env.REST_INSTALL_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: Cache framework installation
id: framework-install-restG4-cache-reference
uses: actions/cache@v3
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
check-installation-reference:
name: Check ref framework and restG4 are accessible
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
needs: [ framework-install-reference ]
steps:
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache-reference
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Check root
run: |
root-config --version
root -b -q
- name: Check framework
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cat ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cat ${{ env.REST_INSTALL_PATH }}/bin/rest-config
rest-config --welcome
- name: Check restG4
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
restG4 --help
restG4-examples-01-reference:
name: "Reference Example 01: NLDBD"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
needs: [ framework-install-reference, check-installation-reference ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache-reference
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/01.NLDBD/
restG4 NLDBD.rml -o Run00001_NLDBD_Test.root
restRoot -b -q Validate.C'("Run00001_NLDBD_Test.root")'
restG4-examples-06-reference:
name: "Reference Example 06: Ion recoils"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
needs: [ framework-install-reference, check-installation-reference ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache-reference
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/06.IonRecoils/
restG4 recoils.rml -o Run00001_F20_Recoils.root
restRoot -b -q Validate.C'("Run00001_F20_Recoils.root")'
restG4-examples-07-reference:
name: "Reference Example 07: Decay"
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-reference-jun2022
needs: [ framework-install-reference, check-installation-reference ]
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: framework-install-restG4-cache-reference
with:
path: ${{ env.REST_INSTALL_PATH }}
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
- name: Run example
run: |
source ${{ env.REST_INSTALL_PATH }}/thisREST.sh
cd ${{ env.REST_INSTALL_PATH }}/examples/restG4/07.FullChainDecay/
restG4 fullChain.rml -o Run00001_U238_FullChainDecay.root
restRoot -b -q Validate.C'("Run00001_U238_FullChainDecay.root", 16)'
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)'