Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Copy the empty directory structure to xrootd before any files are cre…
Browse files Browse the repository at this point in the history
…ated

Copy the empty directory structure to xrootd before any files are created. For now, using the xrdtest directory as the test location. This needs to be omitted in full production scenario.
  • Loading branch information
rahmans1 authored May 13, 2024
1 parent 15af3e5 commit 909ad90
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ BASEDIR=${DATADIR:-${PWD}}

# XRD Read and Write locations
XRDURL="root://dtn-eic.jlab.org//work/eic2/EPIC"
XRDWURL="xroots://dtn2201.jlab.org//eic/eic2/EPIC"
XRDWURL="xroots://dtn2201.jlab.org//eic/eic2/EPIC/xrdtest"

# Local temp dir
echo "SLURM_TMPDIR=${SLURM_TMPDIR:-}"
Expand Down Expand Up @@ -113,14 +113,23 @@ xrdcp -f ${XRDURL}/${INPUT_FILE} ${INPUT_DIR}
LOG_DIR=${XRDWURL}/LOG/${TAG}
LOG_TEMP=${TMPDIR}/LOG/${TAG}
mkdir -p ${LOG_TEMP}
if [ "${COPYLOG:-false}" == "true" ] ; then
xrdcp --force --recursive ${TMPDIR}/LOG ${XRDWURL}
fi
#
FULL_DIR=${XRDWURL}/FULL/${TAG}
FULL_TEMP=${TMPDIR}/FULL/${TAG}
mkdir -p ${FULL_TEMP}
if [ "${COPYFULL:-false}" == "true" ] ; then
xrdcp --force --recursive ${TMPDIR}/FULL ${XRDWURL}
fi
#
RECO_DIR=${XRDWURL}/RECO/${TAG}
RECO_TEMP=${TMPDIR}/RECO/${TAG}
mkdir -p ${RECO_TEMP}
if [ "${COPYRECO:-false}" == "true" ] ; then
xrdcp --force --recursive ${TMPDIR}/RECO ${XRDWURL}
fi

# Run simulation
{
Expand Down

0 comments on commit 909ad90

Please sign in to comment.