File indexing completed on 2026-10-08 08:36:03
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 set SRC = root://dtn-eic.jlab.org:1094//work/eic3/EPIC/TestBeam/LFHCAL/CERN/2026/2026_SPSH2/raw
0012
0013 if ($
0014 set DEST = "$argv[1]"
0015 else if ($?LFHCAL_DATA) then
0016 set DEST = "$LFHCAL_DATA"
0017 else
0018 set DEST = /gpfs/mnt/gpfs01/star/pwg/pnord/eic/2026TBdata
0019 endif
0020
0021 mkdir -p "$DEST"
0022 if ($status != 0) exit 1
0023
0024 foreach r (529 530 531 532 533 534 535 536 537)
0025 set OUT = "$DEST/Run${r}.h2g"
0026 set TMP = "$OUT.part"
0027
0028 if (-s "$OUT") then
0029 echo "Run${r}.h2g already present"
0030 continue
0031 endif
0032
0033 echo "Downloading Run${r}.h2g"
0034 /bin/rm -f "$TMP"
0035 xrdcp "$SRC/Run${r}.h2g" "$TMP"
0036 if ($status != 0) then
0037 echo "ERROR: download failed for Run${r}.h2g"
0038 /bin/rm -f "$TMP"
0039 exit 1
0040 endif
0041
0042 /bin/mv "$TMP" "$OUT"
0043 if ($status != 0) exit 1
0044 end
0045
0046 echo ""
0047 echo "G2 raw files:"
0048 foreach r (529 530 531 532 533 534 535 536 537)
0049 ls -lh "$DEST/Run${r}.h2g"
0050 end