diff --git a/scripts/run.sh b/scripts/run.sh index 09ee708..27cee5c 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -179,8 +179,7 @@ if [ "${COPYFULL:-false}" == "true" ] ; then # Token for write authentication export BEARER_TOKEN=$(cat ${_CONDOR_CREDS}/eic.use) xrdfs ${XRDWURL} mkdir -p ${XRDWBASE}/${FULL_DIR} || echo "Cannot write simulation outputs to xrootd server" - xrdcp --force --recursive ${FULL_TEMP}/${TASKNAME}.edm4hep.root ${XRDWURL}/${XRDWBASE}/${FULL_DIR} - /opt/campaigns/hepmc3/scripts/register_to_rucio.py -f ${XRDRBASE}/${FULL_DIR}/${TASKNAME}.edm4hep.root --du $(xrdfs ${XRDRURL} stat ${XRDRBASE}/${FULL_DIR}/${TASKNAME}.edm4hep.root | grep 'Size' | awk -F' ' '{print $2}') + xrdcp --force --recursive ${FULL_TEMP}/${TASKNAME}.edm4hep.root ${XRDWURL}/${XRDWBASE}/${FULL_DIR} fi # Run eicrecon reconstruction @@ -209,7 +208,6 @@ if [ "${COPYRECO:-false}" == "true" ] ; then export BEARER_TOKEN=$(cat ${_CONDOR_CREDS}/eic.use) xrdfs ${XRDWURL} mkdir -p ${XRDWBASE}/${RECO_DIR} || echo "Cannot write reconstructed outputs to xrootd server" xrdcp --force --recursive ${RECO_TEMP}/${TASKNAME}*.edm4eic.root ${XRDWURL}/${XRDWBASE}/${RECO_DIR} - /opt/campaigns/hepmc3/scripts/register_to_rucio.py -f ${XRDRBASE}/${RECO_DIR}/${TASKNAME}.eicrecon.tree.edm4eic.root --du $(xrdfs ${XRDRURL} stat ${XRDRBASE}/${RECO_DIR}/${TASKNAME}.eicrecon.tree.edm4eic.root | grep 'Size' | awk -F' ' '{print $2}') fi if [ "${COPYLOG:-false}" == "true" ] ; then # Token for write authentication