justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 12005, Stage 4

Workflow12005
Campaign403
Priority50
Processors1
Wall seconds28800
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes6291456000 (6000 MiB)
Max distance for inputs0.0
Enabled input RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, MONTECARLO, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled output RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled sites BR_CBPF, CA_SFU, CA_Victoria, CERN, CH_UNIBE-LHEP, CZ_FZU, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IT_CNAF, NL_NIKHEF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Glasgow, UK_Imperial, UK_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_BNL, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_NotreDame, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin
Scopeusertests
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stageRSE expression
1Rucio usertests:fnal-w12005s4p1*_reco.root7776000FalseDUNE_US_FNAL_DISK_STAGE
2Rucio usertests:fnal-w12005s4p2*_larcv.root7776000FalseDUNE_US_FNAL_DISK_STAGE

Environment variables

NameValue
JOB_FHICL_FILEstandard_mythical_supera_dune10kt_1x2x6.fcl

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
3242021300302009

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
2282200001551432067631893600
Files processed00100100200200300300400400500500600600700700Jan-17 20:00Jan-17 22:00Jan-18 00:00Jan-18 02:00Jan-18 04:00Jan-18 06:00Jan-18 08:00Jan-18 10:00Jan-18 12:00Jan-18 14:00Jan-18 16:00Jan-18 18:00Jan-18 20:00Jan-18 22:00Jan-19 00:00Files processedBin start timesNumber per binCA_SFUUK_RAL-PPDUS_FNAL-T1US_FNAL-FermiG…US_FNAL-FermiGridCERNUK_RAL-Tier1IT_CNAFNL_NIKHEFCZ_FZUUK_QMUL
Replicas per RSE826455.56826409799675160.6683733903617708459.4344607445859303.12493360732316449352.2702727606944335.58322808039577369288.18481351392296285.5563917523996334276.2104528822087216.2286773400578268303.16420720749306161.99756291661413139336.72985614446026138.0011216173808779357.8208647127693131.062271455453670372.86276202886665128.9421595779572Replicas per RSEDUNE_CERN_EOS (25%)NIKHEF (21%)RAL_ECHO (13%)DUNE_IT_INFN_CNAF (11%)DUNE_US_FNAL_DISK_STAGE (10…DUNE_US_FNAL_DISK_STAGE (10%)PRAGUE (8%)DUNE_CA_SFU (4%)RAL-PP (2%)QMUL (2%)

RSEs used

NameInputsOutputs
DUNE_CERN_EOS8391648
NIKHEF7131414
RAL_ECHO454896
DUNE_IT_INFN_CNAF379734
DUNE_CA_SFU295226
PRAGUE267534
DUNE_US_FNAL_DISK_STAGE149298
RAL-PP84156
QMUL67134

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

SiteAllocatedOutputting
CA_SFU1773
IT_CNAF41
CERN30

Jobscript

#!/bin/bash
#set -euo pipefail

echo "=== RECO job starting ==="
echo "Host: $(hostname)"
echo "PWD(cmd): $(/bin/pwd -P || pwd || true)"
echo "PWD(var): ${PWD:-unset}"
echo "JUSTIN_PATH=${JUSTIN_PATH:-unset}"
echo "JUSTIN_INPUT_FILE=${JUSTIN_INPUT_FILE:-unset}"

# ----------------------------------------------------------------------
# Allocate the input file via justIN (robust)
# ----------------------------------------------------------------------
if [[ -z "${JUSTIN_PATH:-}" ]]; then
  echo "ERROR: JUSTIN_PATH is not set (not running under justIN wrapper?)"
  exit 2
fi

alloc="$("$JUSTIN_PATH/justin-get-file")"
if [[ -z "$alloc" ]]; then
  echo "No more inputs allocated for this stage; exiting cleanly."
  exit 0
fi

did="$(echo "$alloc" | awk '{print $1}')"
pfn="$(echo "$alloc" | awk '{print $2}')"
rse="$(echo "$alloc" | awk '{print $3}')"
echo "Allocated input: did=$did pfn=$pfn rse=$rse"

INPUT_DETSIM="${pfn:-}"
if [[ -z "${INPUT_DETSIM}" ]]; then
  echo "ERROR: allocator returned empty PFN"
  exit 3
fi

echo "G4 input file: ${INPUT_DETSIM}"

# Output value of expected input environment variables
echo "fhicl file: ${JOB_FHICL_FILE}"

# Work in the sandbox
cd $PWD

# ----------------------------------------------------------------------
# Grab the tarball that has our fhicl files we'll need
# ----------------------------------------------------------------------
FCL_TGZ_URL="https://raw.githubusercontent.com/SFBayLaser/dune-justin/main/bundles/fhicl_bundle.tgz"
curl -L -o fhicl_bundle.tgz "$FCL_TGZ_URL"
tar xzf fhicl_bundle.tgz

# ----------------------------------------------------------------------
# Environment setup
# ----------------------------------------------------------------------
echo "Sourcing DUNE setup..."
#set +u
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
#set -u

setup dunesw v10_16_00d00 -q e26:prof

ups active
lar --version

# ----------------------------------------------------------------------
# Point fhicl to our local files
# ----------------------------------------------------------------------
export FHICL_FILE_PATH="$PWD/fhicl:${FHICL_FILE_PATH:-.}"

# ----------------------------------------------------------------------
# Run Reco
# ----------------------------------------------------------------------
FCL=${JOB_FHICL_FILE}

# Output filename derived from input (your preferred convention)
INBASE="$(basename "${INPUT_DETSIM}" .root)"
OUTFILE="${INBASE}_reco.root"

echo "Running lar DETSIM:"
echo "  FCL:     ${FCL}"
echo "  Input:   ${INPUT_DETSIM}"
echo "  Output:  ${OUTFILE}"

lar -c "${FCL}" -s "${INPUT_DETSIM}" -o "${OUTFILE}" -n -1

# ----------------------------------------------------------------------
# rename larcv file
# ----------------------------------------------------------------------
LARCVNAME="${INBASE}_reco_larcv.root"
mv -v larcv.root "${LARCVNAME}"

# ----------------------------------------------------------------------
# Sanity checks
# ----------------------------------------------------------------------
test -f "${OUTFILE}" || { echo "ERROR: Output file ${OUTFILE} not produced!"; exit 1; }
test -f "${LARCVNAME}" || { echo "ERROR: Output file ${LARCVNAME} not produced!"; exit 1; }

echo "Sandbox folder contains:"
ls -lh $PWD

# ----------------------------------------------------------------------
# Tell justIN we successfully processed the allocated input
# ----------------------------------------------------------------------
echo "$did" >> justin-processed-dids.txt
echo "Wrote processed DID: $did"

echo "=== RECOjob completed successfully ==="
justIN time: 2026-02-04 04:26:10 UTC       justIN version: 01.06.00
<