Stats of processed input files as CSV or JSON, and of uploaded output files as CSV or JSON (up to 10000 files included)
File reset events, by site
Site
Allocated
Outputting
US_PuertoRico
6
2
UK_RAL-Tier1
1
4
NL_SURFsara
0
56
US_UChicago
0
44
US_Colorado
0
31
US_FNAL-FermiGrid
0
22
CA_SFU
0
2
UK_QMUL
0
2
UK_RAL-PPD
0
1
US_Wisconsin
0
1
Jobscript
#!/bin/bash
# fcl file and DUNE software version/qualifier to be used
FCL_FILE=pndr.fcl
DUNE_VERSION=${DUNE_VERSION:-v09_92_00d00}
DUNE_QUALIFIER=${DUNE_QUALIFIER:-e26:prof}
FW_SEARCH_PATH=.:$INPUT_TAR_DIR_LOCAL:$FW_SEARCH_PATH
FHICL_FILE_PATH=.:INPUT_TAR_DIR_LOCAL:$FHICL_FILE_PATH
echo $FW_SEARCH_PATH
cp $INPUT_TAR_DIR_LOCAL/pndr.fcl .
cp $INPUT_TAR_DIR_LOCAL/setup-grid .
cp -r $INPUT_TAR_DIR_LOCAL/localProducts* .
# number of events to process from the input file
if [ "$NUM_EVENTS" != "" ] ; then
events_option="-n $NUM_EVENTS"
fi
# Setup DUNE environment
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
# the xroot lib for streaming non-root files is in testproducts,
# so add it to the start of the path
export PRODUCTS=/cvmfs/dune.opensciencegrid.org/products/dune/testproducts:${PRODUCTS}
setup dunesw "$DUNE_VERSION" -q "$DUNE_QUALIFIER"
export OMP_NUM_THREADS=${JUSTIN_PROCESSORS}
source setup-grid
mrbslp
for i in {0..19}; do
# First get an unprocessed file from this stage
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`
if [ "$did_pfn_rse" = "" ] ; then
echo "Nothing to process - exit jobscript"
exit 0
fi
# Keep a record of all input DIDs, for pdjson2meta file -> DID mapping
echo "$did_pfn_rse" | cut -f1 -d' ' >>all-input-dids.txt
# pfn is also needed when creating justin-processed-pfns.txt
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
echo "Input PFN = $pfn"
# Construct outFile from input $pfn
now=$(date -u +"%Y-%m-%dT_%H%M%SZ")
Ffname=`echo $pfn | awk -F/ '{print $NF}'`
fname=`echo $Ffname | awk -F. '{print $1}'`
campaign="justIN.r${JUSTIN_WORKFLOW_ID}s${JUSTIN_STAGE_ID}"
(
# Do the scary preload stuff in a subshell!
export LD_PRELOAD=${XROOTD_LIB}/libXrdPosixPreload.so
echo "$LD_PRELOAD"
lar -c $FCL_FILE $events_option "$pfn" > ${fname}_reco_${now}.log 2>&1
)
# Subshell exits with exit code of last command
larExit=$?
echo "lar exit code $larExit"
echo "$pfn" > justin-processed-pfns.txt
done
mv SecVtx_CaloHitListU.csv SecVtx_CaloHitListU_${fname}.csv
mv SecVtx_CaloHitListV.csv SecVtx_CaloHitListV_${fname}.csv
mv SecVtx_CaloHitListW.csv SecVtx_CaloHitListW_${fname}.csv
#rm -f SecVtx_CaloHitList_*_*.csv
ls -lRS
# Create compressed tar file with all log files
tar zcf `echo "$JUSTIN_JOBSUB_ID.logs.tgz" | sed 's/@/_/g'` *.log
exit $larExit
justIN time: 2024-11-17 03:42:06 UTC justIN version: 01.01.09