Skip to content
Snippets Groups Projects

Restructuring repo

Merged Whitney Armstrong requested to merge restructure2 into master
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 140
48
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
default:
artifacts:
expire_in: 20 weeks
paths:
- results/
- datasets/
- sim_output/
- data
reports:
dotenv: juggler.env
before_script:
- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git
#- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git && mkdir NPDet/build && cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 install && cd ../..
- git clone https://eicweb.phy.anl.gov/EIC/detectors/topside.git && mkdir topside/build && cd topside/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 install && cd ../..
- git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git && cd topside && ln -s ../accelerator/eic && cd ../.
artifacts:
expire_in: 72 hours
paths:
- .local/detector
- .local/lib
- results
- config
stages:
- config
- initialize
- data_init
- simulate
- benchmarks
- deploy
get_data:
stage: data_init
tags:
- silicon
env:
stage: config
script:
- git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
- ln -s datasets/data
- mkdir -p results
- mkdir -p sim_output
- ./util/print_env.sh
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}/sim_output
roman_pot_simu:
stage: simulate
needs:
- ["get_data"]
tags:
- silicon
detector:
stage: initialize
needs: ["env"]
timeout: 1 hours
cache:
key:
files:
- options/env.sh
- util/build_detector.sh
prefix: "$CI_COMMIT_REF_SLUG"
paths:
- .local/detector
- .local/lib
script:
- cp NPDet/src/detectors/trackers/compact/elements.xml ./.
- cp NPDet/src/detectors/trackers/compact/materials.xml ./.
- bash trackers/roman_pot_simu.sh
- ./util/print_env.sh
- ./util/build_detector.sh
- ./util/print_env.sh
- mkdir -p results
- mkdir -p config
roman_pot_nhits:
stage: benchmarks
needs:
- ["roman_pot_simu"]
tags:
- silicon
get_data:
stage: data_init
needs: ["detector"]
script:
- root -b -q trackers/simple_tracking.cxx+
allow_failure: true
- source options/env.sh
- ln -s ${LOCAL_DATA_PATH}/sim_output sim_output
- ln -s ${LOCAL_DATA_PATH}/datasets/data data
- cd ${LOCAL_DATA_PATH} && git clone --depth=1 https://eicweb.phy.anl.gov/EIC/datasets.git datasets
roman_pot_eta:
stage: benchmarks
tags:
- silicon
.det_benchmark:
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
needs:
- ["roman_pot_simu"]
script:
- root -b -q trackers/roman_pot_hit_eta.cxx+
allow_failure: true
- ["get_data"]
before_script:
- source options/env.sh
- ln -s ${LOCAL_DATA_PATH}/sim_output sim_output
- ln -s ${LOCAL_DATA_PATH}/datasets/data data
artifacts:
expire_in: 20 weeks
paths:
- results/
include:
- local: 'calorimeters/calorimeters_config.yml'
include:
- local: 'benchmarks/trackers/config.yml'
- local: 'benchmarks/calorimeters/config.yml'
- local: 'benchmarks/pid/config.yml'
#roman_pot_simu:
# stage: simulate
# needs:
# - ["get_data","detector"]
# script:
# - bash benchmarks/trackers/roman_pot_simu.sh
#
#roman_pot_nhits:
# stage: benchmarks
# needs:
# - ["roman_pot_simu","detector"]
# script:
# - root -b -q benchmarks/trackers/simple_tracking.cxx+
# allow_failure: true
#
#roman_pot_eta:
# stage: benchmarks
# needs:
# - ["roman_pot_simu","detector"]
# script:
# - root -b -q benchmarks/trackers/roman_pot_hit_eta.cxx+
# allow_failure: true
#
#zdc_simulation:
# stage: simulate
# needs:
# - ["get_data","detector"]
# script:
# - bash benchmarks/calorimeters/run_simulation_zdc.sh
#
#cal_test_3_zdc_neutrons_reader:
# stage: benchmarks
# needs:
# - ["zdc_simulation","detector"]
# script:
# - root -b -q benchmarks/calorimeters/zdc_neutrons_reader.cxx
# allow_failure: true
#
#
#zdc_benchmark:
# stage: benchmarks
# needs:
# - ["zdc_simulation","detector"]
# script:
# - ls -lrth sim_output
# - root -b -q benchmarks/calorimeters/simple_checking.cxx+
# allow_failure: true
#
#zdc_benchmark_info_histogram:
# stage: benchmarks
# needs:
# - ["zdc_simulation","detector"]
# script:
# - root -b -q benchmarks/calorimeters/simple_info_plot_histograms.cxx+
# allow_failure: true
#
#crystal_emcal_simulation:
# stage: simulate
# needs:
# - ["get_data"]
# script:
# bash benchmarks/calorimeters/run_simulation_crystal.sh
#
#crystal_benchmark:
# stage: benchmarks
# needs:
# - ["crystal_emcal_simulation","detector"]
# script:
# - ls -lrth sim_output
# - root -b -q benchmarks/calorimeters/simple_checking_crystal.cxx+
# allow_failure: true
#
#crystal_pion_simulation:
# stage: simulate
# needs:
# - ["get_data","detector"]
# tags:
# - silicon
# script:
# - source options/env.sh
# - npsim --runType batch --numberOfEvents 100 --compactFile ${DETECTOR_PATH}/topside.xml --inputFiles data/emcal_electrons.hepmc --outputFile sim_output/output_emcal_electrons.root
deploy_results:
stage: deploy
needs:
- ["ben_emcal_barrel_electrons"]
- ["cal_bench:zdc_benchmark"]
tags:
- silicon
script:
- echo "deploy results!"
pages:
stage: deploy
rules:
@@ -89,3 +180,4 @@ pages:
paths:
- public
Loading