Skip to content

Commit

Permalink
Merge branch 'main' into aranya_lumidesign
Browse files Browse the repository at this point in the history
  • Loading branch information
aranyagiri authored Nov 11, 2024
2 parents 114e512 + d491ba7 commit 5703203
Show file tree
Hide file tree
Showing 96 changed files with 4,902 additions and 2,468 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-geometry-configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check geometry configs

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
check-geometry-configs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-fast-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
IFS=, read -a configs <<< "${{inputs.detector_configs}}"
for config in ${configs[@]} ; do
echo "::group::${config}" ;
checkGeometry -c ${DETECTOR_PATH}/${config}.xml ;
echo "::endgroup::" ;
done
30 changes: 30 additions & 0 deletions .github/workflows/check-tracking-geometry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check tracking geometry

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
check-tracking-geometry:
runs-on: ubuntu-latest
strategy:
matrix:
detector_config: ${{fromJson(inputs.detector_configs)}}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-fast-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
root -b -q "scripts/test_ACTS.cxx+(\"${DETECTOR_PATH}/${{matrix.detector_config}}.xml\")" | tee check_tracking_geometry.out
bin/acts_geo_check check_tracking_geometry.out
36 changes: 36 additions & 0 deletions .github/workflows/convert-to-gdml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Convert to GDML

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
convert-to-gdml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-full-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
IFS=, read -a configs <<< "${{inputs.detector_configs}}"
for config in ${configs[@]} ; do
echo "::group::${config}" ;
geoConverter -compact2gdml -input ${DETECTOR_PATH}/${config}.xml -output ${config}.gdml ;
echo "::endgroup::" ;
done
- uses: actions/upload-artifact@v4
with:
name: gdml
path: "*.gdml"
if-no-files-found: error
44 changes: 44 additions & 0 deletions .github/workflows/convert-to-step.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Convert to STEP

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
convert-to-step:
runs-on: ubuntu-latest
strategy:
matrix:
detector_config: ${{fromJson(inputs.detector_configs)}}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-fast-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
# For some reason npdet_to_step really wants a space in IFS
IFS=$' \n\t'
# First get all detectors (except world)
declare -A detectors
while read d ; do detectors[$d]='-l 3' ; done <<< $(npdet_to_step list $DETECTOR_PATH/${{matrix.detector_config}}.xml | sed '/world/d;s/.*(vol: \(.*\)).*/\1/g')
# Then tweak the levels (default is 1)
detectors[HcalBarrel]='-l 1'
detectors[LFHCAL]='-l 2'
detectors[OuterBarrelMPGDSubAssembly]='-l 4'
# Export to one STEP file
npdet_to_step $(for d in ${!detectors[@]} ; do echo part ${detectors[$d]} $d ; done) -o ${{matrix.detector_config}} $DETECTOR_PATH/${{matrix.detector_config}}.xml 2>&1 | sed '/TGeoMatrix::dtor/d'
- uses: actions/upload-artifact@v4
with:
name: ${{matrix.detector_config}}.stp
path: ${{matrix.detector_config}}.stp
if-no-files-found: error
36 changes: 36 additions & 0 deletions .github/workflows/convert-to-tgeo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Convert to TGeo

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
convert-to-tgeo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-full-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
IFS=, read -a configs <<< "${{inputs.detector_configs}}"
for config in ${configs[@]} ; do
echo "::group::${config}" ;
geoConverter -compact2tgeo -input ${DETECTOR_PATH}/${config}.xml -output ${config}.root
echo "::endgroup::" ;
done
- uses: actions/upload-artifact@v4
with:
name: tgeo
path: "*.root"
if-no-files-found: error
Loading

0 comments on commit 5703203

Please sign in to comment.