-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into aranya_lumidesign
- Loading branch information
Showing
96 changed files
with
4,902 additions
and
2,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.