Skip to content

Commit

Permalink
fix: dont use heredoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Nov 25, 2024
1 parent 2732cfa commit 3d52f17
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/celeritas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"geometry_file": "${config}.gdml",
"event_file": "root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc",
"output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json",
"offload_output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.offloaded.hepmc",
"num_track_slots": 1024,
"initializer_capacity": 32768,
"secondary_stack_factor": 2,
"physics_list": "celer_ftfp_bert",
"field_type": "uniform",
"field": [
0.0,
0.0,
1.7
],
"field_options": {
"minimum_step": 1e-06,
"delta_chord": 0.025,
"delta_intersection": 1e-05,
"epsilon_step": 1e-05
},
"use_device": false,
"sd_type": "simple_calo",
"step_diagnostic": false,
"step_diagnostic_bins": 8,
"slot_diagnostic": false,
"slot_diagnostic_prefix": "slot-diag-cpu-"
}
33 changes: 2 additions & 31 deletions .github/workflows/celeritas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,7 @@ jobs:
run: |
# convert to gdml, but with sensitive detectors included
scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${config}.xml --output ${config}.gdml
# create celeritas input file
cat <<EOF > ${config}.json
{
"geometry_file": "${config}.gdml",
"event_file": "root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc",
"output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json",
"offload_output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.offloaded.hepmc",
"num_track_slots": 1024,
"initializer_capacity": 32768,
"secondary_stack_factor": 2,
"physics_list": "celer_ftfp_bert",
"field_type": "uniform",
"field": [
0.0,
0.0,
1.7
],
"field_options": {
"minimum_step": 1e-06,
"delta_chord": 0.025,
"delta_intersection": 1e-05,
"epsilon_step": 1e-05
},
"use_device": false,
"sd_type": "simple_calo",
"step_diagnostic": false,
"step_diagnostic_bins": 8,
"slot_diagnostic": false,
"slot_diagnostic_prefix": "slot-diag-cpu-"
}
EOF
# create celeritas input file from template
cat celeritas.json | envsubst > ${config}.json
# run celeritas
celer-g4 ${config}.json

0 comments on commit 3d52f17

Please sign in to comment.