File indexing completed on 2026-10-08 08:36:03
0001
0002 set SRC = root://dtn-eic.jlab.org:1094//work/eic3/EPIC/TestBeam/LFHCAL/CERN/2026/2026_SPSH2/raw
0003
0004 if ($
0005 set DEST = "$argv[1]"
0006 else if ($?LFHCAL_DATA) then
0007 set DEST = "$LFHCAL_DATA"
0008 else
0009 set DEST = /gpfs/mnt/gpfs01/star/pwg/pnord/eic/2026TBdata
0010 endif
0011
0012 mkdir -p "$DEST"
0013 if ($status != 0) exit 1
0014
0015 foreach r (188 194 195 196 197 198 199 200 201 202)
0016 set OUT = "$DEST/Run${r}.h2g"
0017 set TMP = "$OUT.part"
0018 if (-s "$OUT") then
0019 echo "Run${r}.h2g already present"
0020 continue
0021 endif
0022 echo "Downloading Run${r}.h2g"
0023 /bin/rm -f "$TMP"
0024 xrdcp "$SRC/Run${r}.h2g" "$TMP"
0025 if ($status != 0) then
0026 echo "ERROR: download failed for Run${r}.h2g"
0027 /bin/rm -f "$TMP"
0028 exit 1
0029 endif
0030 /bin/mv "$TMP" "$OUT"
0031 if ($status != 0) exit 1
0032 end