Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-12-02 10:29:24

0001 #!/bin/bash
0002 echo 'dummy payload' > myout.txt
0003 
0004 # A wrapper that blocks propagation of $@, $1, etc.: sourcing inside the
0005 # function scope after `shift` leaves the sourced script with no positional
0006 # parameters (thisepic.sh would otherwise set DETECTOR_CONFIG=${1:-epic} to
0007 # the input filename this payload was called with).
0008 _sourceWithoutArgs() {
0009     local fileToSource="$1"
0010     shift
0011     . "$fileToSource"
0012 }
0013 
0014 eic-info
0015 ls -R
0016 _sourceWithoutArgs /opt/detector/epic-26.03.0/bin/thisepic.sh
0017 IFS="," read -ra FILES <<< "$1"
0018 for infile in "${FILES[@]}"; do
0019     # inputs are symlinked into /output by the submitter; use the absolute
0020     # in-container path
0021     infile="/output/$(basename "$infile")"
0022     outfile="${infile/.edm4hep.root/.edm4eic.root}"
0023     eicrecon "$infile" -Ppodio:output_file="$outfile"
0024 done
0025 ls -R