Newer
Older
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
- git clone https://eicweb.phy.anl.gov/EIC/detectors/topside.git
&& mkdir topside/build
&& cd topside/build
&& cmake ../. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/usr/local
&& make -j20 install
&& cd ../..
|| exit 1
artifacts:
expire_in: 72 hours
paths:
- .local/detector
- .local/lib
- results
- config
- ./util/print_env.sh
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}/sim_output
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
- ./util/print_env.sh
- ./util/build_detector.sh
- ./util/print_env.sh
- mkdir -p results
- mkdir -p config
get_data:
stage: data_init
needs: ["detector"]
- 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
.det_benchmark:
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
- ["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/
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
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
- ["cal_bench:zdc_benchmark"]
pages:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_SERVER_HOST != "eicweb.phy.anl.gov"'
cache:
paths:
- node_modules/
image: node:latest
script:
- mkdir public && cp doc/main.html public/index.html
artifacts:
paths:
- public