Newer
Older
# exclude:
# - .git/
# - datasets/.git/
- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git
- 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 ../..
# - cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j10 && make install
script:
- git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
#generate_config:
# stage: ci_gen
# tags:
# script:
# - ./bin/gen_ci_config -p track_test_ -i trackers > results/trackers_config.yml
# - ./bin/gen_ci_config -p cal_test_ -i calorimeters > results/calorimeters_config.yml
# - ./bin/gen_ci_config -p pid_test_ -i pid > results/pid_config.yml
script:
- echo "here we run simulation"
allow_failure: true
cal_test_3_zdc_neutrons_reader:
script:
- root -b -q calorimeters/zdc_neutrons_reader.cxx
allow_failure: true
script:
- bash pid/dummy_test.sh
allow_failure: true
script:
- bash trackers/dummy_test.sh
allow_failure: true
roman_pot_simu:
stage: simulate
needs:
- ["get_data"]
tags:
script:
- cp NPDet/src/GenericDetectors/trackers/compact/elements.xml ./.
- cp NPDet/src/GenericDetectors/trackers/compact/materials.xml ./.
- bash trackers/roman_pot_simu.sh
script:
- root -b -q trackers/simple_tracking.cxx+
allow_failure: true
script:
- root -b -q trackers/roman_pot_hit_eta.cxx+
allow_failure: true
script:
- cp NPDet/src/GenericDetectors/calorimeters/compact/elements.xml ./.
- cp NPDet/src/GenericDetectors/calorimeters/compact/materials.xml ./.
- bash calorimeters/run_simulation_zdc.sh

Jihee Kim
committed
zdc_benchmark:
needs:
- ["zdc_simulation"]
dependencies:
- zdc_simulation

Jihee Kim
committed
- root -b -q calorimeters/simple_checking.cxx+
zdc_benchmark_info_histogram:
stage: benchmarks
- cp NPDet/src/GenericDetectors/calorimeters/compact/elements.xml calorimeters/
- cp NPDet/src/GenericDetectors/calorimeters/compact/materials.xml calorimeters/
- root -b -q calorimeters/simple_info_plot_histograms.cxx+
allow_failure: true
crystal_emcal_simulation:
stage: simulate
needs:
- ["get_data"]
tags:
script:
- cp NPDet/src/GenericDetectors/calorimeters/compact/elements.xml ./.
- cp NPDet/src/GenericDetectors/calorimeters/compact/materials.xml ./.
- bash calorimeters/run_simulation_crystal.sh
crystal_benchmark:
stage: benchmarks
tags:
script:
- ls -lrth sim_output
- root -b -q calorimeters/simple_checking_crystal.cxx+
allow_failure: true
crystal_pion_simulation:
stage: simulate
needs:
- ["get_data"]
- cd topside && ls -l
- npsim --runType batch --numberOfEvents 100 --compactFile topside.xml --inputFiles ../data/emcal_electrons.hepmc --outputFile ../sim_output/output_emcal_electrons.root
deploy_results:
stage: deploy
needs:
- ["zdc_benchmark","zdc_benchmark_info_histogram"]
tags: