Skip to content
Snippets Groups Projects
Commit fc8372f7 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: dump constants and parameter table

parent 71744cb7
No related branches found
No related tags found
1 merge request!51New github workflows: convert geometry etc, artifacts
...@@ -76,6 +76,58 @@ jobs: ...@@ -76,6 +76,58 @@ jobs:
path: geo/ path: geo/
if-no-files-found: error if-no-files-found: error
dump-constants:
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: install
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: install/setup.sh
run: |
mkdir -p doc
npdet_info dump ${DETECTOR_PATH}/ecce.xml | tee doc/constants.out
- uses: actions/upload-artifact@v3
with:
name: constants.out
path: doc/constants.out
if-no-files-found: error
dump-parameter-table:
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: install
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: install/setup.sh
run: |
mkdir -p doc
npdet_info dump ${DETECTOR_PATH}/ecce.xml | grep -v '^\s' | grep '=' | cut -d= -f1-2 | tee doc/constants.toml
python bin/make_detector_parameter_table
- uses: actions/upload-artifact@v3
with:
name: constants.toml
path: doc/constants.toml
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: DetectorParameterTable.csv
path: doc/DetectorParameterTable.csv
if-no-files-found: error
check-overlap-tgeo: check-overlap-tgeo:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-test needs: build-test
...@@ -120,6 +172,26 @@ jobs: ...@@ -120,6 +172,26 @@ jobs:
noverlaps="$(grep -c GeomVol1002 doc/overlap_check_geant4.out || true)" noverlaps="$(grep -c GeomVol1002 doc/overlap_check_geant4.out || true)"
if [[ "${noverlaps}" -gt "0" ]] ; then echo "${noverlaps} overlaps found!" && false ; fi if [[ "${noverlaps}" -gt "0" ]] ; then echo "${noverlaps} overlaps found!" && false ; fi
check-overlap-geant4-inner-detector:
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: install
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: install/setup.sh
run: |
mkdir -p doc
python scripts/checkOverlaps.py -c ${DETECTOR_PATH}/${DETECTOR_CONFIG}_inner_detector.xml | tee doc/overlap_check_geant4.out
noverlaps="$(grep -c GeomVol1002 doc/overlap_check_geant4.out || true)"
if [[ "${noverlaps}" -gt "0" ]] ; then echo "${noverlaps} overlaps found!" && false ; fi
trigger-detector-benchmarks: trigger-detector-benchmarks:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [check-overlap-tgeo, check-overlap-geant4] needs: [check-overlap-tgeo, check-overlap-geant4]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment